Rename basicXYZ functions to baseXYZ, extract _.clone, _.merge, _.isEqual functions into their own baseXYZ functions, and rework createBound to flatten multiple calls.

Former-commit-id: 8efa6004d747103e9ec6507755fa6ffceb01b16f
This commit is contained in:
John-David Dalton
2013-07-21 12:32:02 -07:00
parent 56ae4dcd12
commit 65227f601e
4 changed files with 646 additions and 623 deletions

View File

@@ -80,6 +80,8 @@
'TypeError',
'VERSION',
'_',
'__bindData__',
'__chain__',
'__wrapped__',
'after',
'all',
@@ -95,6 +97,7 @@
'bindAll',
'bindKey',
'cache',
'chain',
'clearTimeout',
'clone',
'cloneDeep',
@@ -127,6 +130,7 @@
'find',
'findIndex',
'findKey',
'findWhere',
'first',
'flatten',
'foldl',
@@ -244,12 +248,7 @@
'without',
'wrap',
'zip',
'zipObject',
// properties used by the `backbone` and `underscore` builds
'__chain__',
'chain',
'findWhere'
'zipObject'
];
/*--------------------------------------------------------------------------*/
@@ -374,8 +373,8 @@
'createIterator\\((?:{|[a-zA-Z]+)[\\s\\S]*?\\);\\n',
// match variables storing `createIterator` options
'^( *)var [a-zA-Z]+IteratorOptions\\b[\\s\\S]+?\\n\\2}',
// match `basicUniq`, `cachePush`, `createCache`, `createIterator`, `getObject`, and `releaseObject` functions
'^( *)(?:var|function) +(?:basicUniq|cachePush|createCache|createIterator|getObject|releaseObject)\\b[\\s\\S]+?\\n\\3}'
// match `baseUniq`, `cachePush`, `createCache`, `createIterator`, `getObject`, and `releaseObject` functions
'^( *)(?:var|function) +(?:baseUniq|cachePush|createCache|createIterator|getObject|releaseObject)\\b[\\s\\S]+?\\n\\3}'
].join('|'), 'gm')
);