Fix build.

Former-commit-id: dba1a3fa7526001d0062dc6e0b44f3c6e3d3d8db
This commit is contained in:
John-David Dalton
2012-11-23 13:26:12 -06:00
parent 1672645e73
commit b4f2e9b442

View File

@@ -1644,8 +1644,8 @@
source = removeFunction(source, 'isArguments');
source = source.replace(getIsArgumentsFallback(source), function(match) {
return snippet + '\n' + match
.replace(/\bisArguments\b/g, 'lodash.$&')
.replace(/\bnoArgsClass\b/g, '!lodash.isArguments(arguments)');
.replace(/isArguments/g, 'lodash.$&')
.replace(/noArgsClass/g, '!lodash.isArguments(arguments)');
});
}());
@@ -1719,6 +1719,11 @@
return match.replace(/(?:\s*\/\/.*)*\n( *)if *\(noCharByIndex[\s\S]+?\n\1}/, '');
});
// replace `createFunction` with `Function` in `_.template`
source = source.replace(matchFunction(source, 'template'), function(match) {
return match.replace(/createFunction/g, 'Function');
});
source = removeVar(source, 'extendIteratorOptions');
source = removeVar(source, 'iteratorTemplate');
source = removeVar(source, 'noCharByIndex');