From 04e9e8f9d83215e3413536cbfed2cefb4383711a Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 22 Oct 2012 22:42:42 -0700 Subject: [PATCH] Remove pseudo private `_shimKeys`. Former-commit-id: e8289094ceb14e62ce5d9fb74e7b9021f30f5aab --- build.js | 3 +-- lodash.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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; /*--------------------------------------------------------------------------*/