Update underscore build with _.difference patch from lodash-cli. [closes #373]

This commit is contained in:
John-David Dalton
2013-10-26 00:26:23 -07:00
parent 9972ea578b
commit 5d77cb0396
2 changed files with 30 additions and 31 deletions

View File

@@ -236,9 +236,8 @@
return false;
}());
/** Detect various environments */
var isIeOpera = reNative.test(root.attachEvent),
isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera);
/** Used to enable optimizations for V8 */
var isV8 = nativeBind && !/\n/.test(nativeBind) && !reNative.test(root.attachEvent);
/*--------------------------------------------------------------------------*/
@@ -2841,7 +2840,7 @@
function difference(array) {
var index = -1,
indexOf = getIndexOf(),
length = array.length,
length = array ? array.length : 0,
flattened = baseFlatten(arguments, true, true, 1),
result = [];