From 2bc343b524e27c08fe699ff99ba966da40cc3180 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 18 Jun 2013 09:04:45 -0700 Subject: [PATCH] Add `defer` to the remove forks check in build.js. Former-commit-id: 964ffc9af09e24b3a9fb3bdc84ff4495521bcd59 --- build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index 38fb318ea..4c850c949 100755 --- a/build.js +++ b/build.js @@ -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); }