From ebb72bb9924eedfac04de7a8e643aab27ba776ae Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 27 Mar 2013 19:43:37 -0700 Subject: [PATCH] Remove `useUnderscoreClone` check from the `underscore` build `_.toArray` replacement. Former-commit-id: 62777dbc108689aa7bd0e258e64341aad8fa6cb3 --- build.js | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/build.js b/build.js index ba3ece21d..65e5b357e 100755 --- a/build.js +++ b/build.js @@ -2323,19 +2323,17 @@ ].join('\n')); // replace `_.toArray` - if (useUnderscoreClone) { - source = replaceFunction(source, 'toArray', [ - 'function toArray(collection) {', - ' if (isArray(collection)) {', - ' return slice(collection);', - ' }', - " if (collection && typeof collection.length == 'number') {", - ' return map(collection);', - ' }', - ' return values(collection);', - '}' - ].join('\n')); - } + source = replaceFunction(source, 'toArray', [ + 'function toArray(collection) {', + ' if (isArray(collection)) {', + ' return slice(collection);', + ' }', + " if (collection && typeof collection.length == 'number') {", + ' return map(collection);', + ' }', + ' return values(collection);', + '}' + ].join('\n')); // replace `_.uniq` source = replaceFunction(source, 'uniq', [