Remove pseudo private _shimKeys.

Former-commit-id: e8289094ceb14e62ce5d9fb74e7b9021f30f5aab
This commit is contained in:
John-David Dalton
2012-10-22 22:42:42 -07:00
parent 7a3330cb8c
commit 04e9e8f9d8
2 changed files with 2 additions and 4 deletions

View File

@@ -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)) {

View File

@@ -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;
/*--------------------------------------------------------------------------*/