diff --git a/build.js b/build.js index 2e064cc36..6cb0bf46e 100755 --- a/build.js +++ b/build.js @@ -1288,8 +1288,7 @@ if (isMobile) { // inline all functions defined with `createIterator` _.functions(lodash).forEach(function(methodName) { - // match `methodName` with pseudo private `_` prefixes removed to allow matching `shimKeys` - var reFunc = RegExp('(\\bvar ' + methodName.replace(/^_/, '') + ' *= *)createIterator\\(((?:{|[a-zA-Z])[\\s\\S]+?)\\);\\n'); + var reFunc = RegExp('(\\bvar ' + methodName + ' *= *)createIterator\\(((?:{|[a-zA-Z])[\\s\\S]+?)\\);\\n'); // skip if not defined with `createIterator` if (!reFunc.test(source)) { diff --git a/lodash.js b/lodash.js index d30718a57..c651c10a3 100644 --- a/lodash.js +++ b/lodash.js @@ -4109,9 +4109,8 @@ lodash.take = first; lodash.unique = uniq; - // add pseudo private properties used and removed during the build process + // add pseudo private property to be used and removed during the build process lodash._iteratorTemplate = iteratorTemplate; - lodash._shimKeys = shimKeys; /*--------------------------------------------------------------------------*/