Fix build, and rebuild files & docs.

Former-commit-id: af57dd1de6b20e93caa79f05cb9b43647a1de578
This commit is contained in:
John-David Dalton
2013-03-03 01:37:33 -08:00
parent 8825a094ae
commit 21a0eff593
9 changed files with 340 additions and 249 deletions

View File

@@ -1333,7 +1333,8 @@
basename = path.basename(data.outputPath, '.js'),
context = createContext(),
isUnderscore = /backbone|underscore/.test(command),
exposeAssign = !isUnderscore;
exposeAssign = !isUnderscore,
exposeZipObject = !isUnderscore;
try {
vm.runInContext(data.source, context);
@@ -1351,6 +1352,7 @@
if (isUnderscore) {
if (methodNames) {
exposeAssign = methodNames.indexOf('assign') > -1;
exposeZipObject = methodNames.indexOf('zipObject') > -1;
} else {
methodNames = underscoreMethods.slice();
}
@@ -1390,6 +1392,9 @@
if (!exposeAssign) {
methodNames = _.without(methodNames, 'assign');
}
if (!exposeZipObject) {
methodNames = _.without(methodNames, 'zipObject');
}
var lodash = context._ || {};
methodNames.forEach(function(methodName) {
testMethod(lodash, methodName, basename);