Bump to v3.1.0.

This commit is contained in:
jdalton
2015-02-01 22:03:53 -08:00
committed by John-David Dalton
parent 3b2df88eab
commit 1608d89174
21 changed files with 118 additions and 58 deletions

View File

@@ -1,4 +1,4 @@
define(['./find', '../utility/matches'], function(find, matches) {
define(['../internal/baseMatches', './find'], function(baseMatches, find) {
/**
* Performs a deep comparison between each element in `collection` and the
@@ -25,7 +25,7 @@ define(['./find', '../utility/matches'], function(find, matches) {
* // => 'fred'
*/
function findWhere(collection, source) {
return find(collection, matches(source));
return find(collection, baseMatches(source));
}
return findWhere;

View File

@@ -1,4 +1,4 @@
define(['./map', '../utility/property'], function(map, property) {
define(['../internal/baseProperty', './map'], function(baseProperty, map) {
/**
* Gets the value of `key` from all elements in `collection`.
@@ -24,7 +24,7 @@ define(['./map', '../utility/property'], function(map, property) {
* // => [36, 40] (iteration order is not guaranteed)
*/
function pluck(collection, key) {
return map(collection, property(key));
return map(collection, baseProperty(key + ''));
}
return pluck;

View File

@@ -1,4 +1,4 @@
define(['./filter', '../utility/matches'], function(filter, matches) {
define(['../internal/baseMatches', './filter'], function(baseMatches, filter) {
/**
* Performs a deep comparison between each element in `collection` and the
@@ -28,7 +28,7 @@ define(['./filter', '../utility/matches'], function(filter, matches) {
* // => ['barney', 'fred']
*/
function where(collection, source) {
return filter(collection, matches(source));
return filter(collection, baseMatches(source));
}
return where;