Add defer to the remove forks check in build.js.

Former-commit-id: 964ffc9af09e24b3a9fb3bdc84ff4495521bcd59
This commit is contained in:
John-David Dalton
2013-06-18 09:04:45 -07:00
parent 1f4d6eb0df
commit 2bc343b524

View File

@@ -3575,8 +3575,8 @@
.replace(/(?:\s*\/\/.*)*\n *lodash\.prototype.[\s\S]+?;/g, '');
}
// remove method fallbacks
_.each(['createObject', 'isArguments', 'isArray', 'isFunction'], function(methodName) {
// remove forks of removed methods
_.each(['createObject', 'defer', 'isArguments', 'isArray', 'isFunction'], function(methodName) {
if (_.size(source.match(RegExp(methodName + '\\(', 'g'))) < 2) {
source = eval('remove' + capitalize(methodName) + 'Fallback')(source);
}