Fix build.

Former-commit-id: e936444a8db7c16fd4cc456e5d8f9fbadf935ad1
This commit is contained in:
John-David Dalton
2013-07-01 08:46:44 -07:00
parent 034b19d85d
commit 5f1a4ea08d
4 changed files with 71 additions and 69 deletions

View File

@@ -1500,7 +1500,7 @@
*/
function countBy(collection, callback, thisArg) {
var result = {};
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
forEach(collection, function(value, key, collection) {
key = String(callback(value, key, collection));
@@ -1552,7 +1552,7 @@
*/
function every(collection, callback, thisArg) {
var result = true;
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
var index = -1,
length = collection ? collection.length : 0;
@@ -1613,7 +1613,7 @@
*/
function filter(collection, callback, thisArg) {
var result = [];
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
var index = -1,
length = collection ? collection.length : 0;
@@ -1679,7 +1679,7 @@
* // => { 'name': 'banana', 'organic': true, 'type': 'fruit' }
*/
function find(collection, callback, thisArg) {
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
var index = -1,
length = collection ? collection.length : 0;
@@ -1756,7 +1756,7 @@
var index = -1,
length = collection ? collection.length : 0;
callback = callback && typeof thisArg == 'undefined' ? callback : lodash.createCallback(callback, thisArg);
callback = callback && typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg);
if (typeof length == 'number') {
while (++index < length) {
if (callback(collection[index], index, collection) === indicatorObject) {
@@ -1804,7 +1804,7 @@
*/
function groupBy(collection, callback, thisArg) {
var result = {};
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
forEach(collection, function(value, key, collection) {
key = String(callback(value, key, collection));
@@ -1891,7 +1891,7 @@
var index = -1,
length = collection ? collection.length : 0;
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
if (typeof length == 'number') {
var result = Array(length);
while (++index < length) {
@@ -1960,7 +1960,7 @@
}
}
} else {
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
forEach(collection, function(value, index, collection) {
var current = callback(value, index, collection);
@@ -2027,7 +2027,7 @@
}
}
} else {
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
forEach(collection, function(value, index, collection) {
var current = callback(value, index, collection);
@@ -2106,7 +2106,7 @@
function reduce(collection, callback, accumulator, thisArg) {
if (!collection) return accumulator;
var noaccum = arguments.length < 3;
callback = lodash.createCallback(callback, thisArg, 4);
callback = createCallback(callback, thisArg, 4);
var index = -1,
length = collection.length;
@@ -2156,7 +2156,7 @@
var props = keys(collection);
length = props.length;
}
callback = lodash.createCallback(callback, thisArg, 4);
callback = createCallback(callback, thisArg, 4);
forEach(collection, function(value, index, collection) {
index = props ? props[--length] : --length;
accumulator = noaccum
@@ -2206,7 +2206,7 @@
* // => [{ 'name': 'carrot', 'organic': true, 'type': 'vegetable' }]
*/
function reject(collection, callback, thisArg) {
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
return filter(collection, function(value, index, collection) {
return !callback(value, index, collection);
});
@@ -2308,7 +2308,7 @@
*/
function some(collection, callback, thisArg) {
var result;
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
var index = -1,
length = collection ? collection.length : 0;
@@ -2367,7 +2367,7 @@
length = collection ? collection.length : 0,
result = Array(typeof length == 'number' ? length : 0);
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
forEach(collection, function(value, key, collection) {
result[++index] = {
'criteria': callback(value, key, collection),
@@ -2562,7 +2562,7 @@
if (typeof callback != 'number' && callback != null) {
var index = -1;
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
while (++index < length && callback(array[index], index, array)) {
n++;
}
@@ -2733,7 +2733,7 @@
if (typeof callback != 'number' && callback != null) {
var index = length;
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
while (index-- && callback(array[index], index, array)) {
n++;
}
@@ -2846,7 +2846,7 @@
if (typeof callback != 'number' && callback != null) {
var index = length;
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
while (index-- && callback(array[index], index, array)) {
n++;
}
@@ -3006,7 +3006,7 @@
index = -1,
length = array ? array.length : 0;
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
while (++index < length && callback(array[index], index, array)) {
n++;
}
@@ -3069,7 +3069,7 @@
high = array ? array.length : low;
// explicitly reference `identity` for better inlining in Firefox
callback = callback ? lodash.createCallback(callback, thisArg, 1) : identity;
callback = callback ? createCallback(callback, thisArg, 1) : identity;
value = callback(value);
while (low < high) {
@@ -3160,7 +3160,7 @@
}
if (callback != null) {
seen = [];
callback = lodash.createCallback(callback, thisArg);
callback = createCallback(callback, thisArg);
}
while (++index < length) {
var value = array[index],