From 12494f3008b16709f4439f6d0cc25b197666606c Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 23 Jun 2013 17:23:22 -0700 Subject: [PATCH] Fix typo in build.js. Former-commit-id: 6722b5f9905108bdc25b12c857d1f0e4f47c2f7a --- build.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.js b/build.js index 3eb411d66..6f57d44e0 100755 --- a/build.js +++ b/build.js @@ -2138,8 +2138,8 @@ }, []); // expand categories to methods - _.each([includeMethods, minusMethods, plusMethods], function(methods) { - var categories = _.intersection(methods, methodCategories); + _.each([includeMethods, minusMethods, plusMethods], function(methodNames) { + var categories = _.intersection(methodNames, methodCategories); categories.forEach(function(category) { var otherMethods = getMethodsByCategory(source, category); @@ -2152,13 +2152,13 @@ otherMethods.push('findWhere'); } } - // limit category methods to those available for specific builds + // limit method names to those available for specific builds if (isBackbone) { otherMethods = _.intersection(methodNames, backboneDependencies); } else if (isUnderscore) { otherMethods = _.intersection(methodNames, underscoreMethods); } - push.apply(methods, otherMethods); + push.apply(methodNames, otherMethods); }); });