mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Remove pseudo private _shimKeys.
Former-commit-id: e8289094ceb14e62ce5d9fb74e7b9021f30f5aab
This commit is contained in:
3
build.js
3
build.js
@@ -1288,8 +1288,7 @@
|
|||||||
if (isMobile) {
|
if (isMobile) {
|
||||||
// inline all functions defined with `createIterator`
|
// inline all functions defined with `createIterator`
|
||||||
_.functions(lodash).forEach(function(methodName) {
|
_.functions(lodash).forEach(function(methodName) {
|
||||||
// match `methodName` with pseudo private `_` prefixes removed to allow matching `shimKeys`
|
var reFunc = RegExp('(\\bvar ' + methodName + ' *= *)createIterator\\(((?:{|[a-zA-Z])[\\s\\S]+?)\\);\\n');
|
||||||
var reFunc = RegExp('(\\bvar ' + methodName.replace(/^_/, '') + ' *= *)createIterator\\(((?:{|[a-zA-Z])[\\s\\S]+?)\\);\\n');
|
|
||||||
|
|
||||||
// skip if not defined with `createIterator`
|
// skip if not defined with `createIterator`
|
||||||
if (!reFunc.test(source)) {
|
if (!reFunc.test(source)) {
|
||||||
|
|||||||
@@ -4109,9 +4109,8 @@
|
|||||||
lodash.take = first;
|
lodash.take = first;
|
||||||
lodash.unique = uniq;
|
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._iteratorTemplate = iteratorTemplate;
|
||||||
lodash._shimKeys = shimKeys;
|
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user