Update _.createCallback dependencies and fix typo in removeFromCreateIterator.

Former-commit-id: 8478aadcdcb3fbf30a481de1bc515510959a2396
This commit is contained in:
John-David Dalton
2013-07-24 22:54:55 -07:00
parent 57fc027f77
commit 56ff8755d4
6 changed files with 7 additions and 12 deletions

View File

@@ -104,7 +104,7 @@
'compose': [],
'contains': ['baseEach', 'getIndexOf', 'isString'],
'countBy': ['createCallback', 'forEach'],
'createCallback': ['bind', 'identity', 'isEqual', 'isObject', 'keys', 'setBindData'],
'createCallback': ['baseIsEqual', 'bind', 'identity', 'isObject', 'keys', 'setBindData'],
'debounce': ['isObject'],
'defaults': ['createCallback', 'createIterator'],
'defer': ['bind'],
@@ -1670,7 +1670,7 @@
// remove `factory` arguments
source = source.replace(snippet, function(match) {
return match
.replace(RegExp("[^\\n(,']*?\\b" + identifier + "[^\\n),']*(?:, *)?", 'g'), ' ')
.replace(RegExp("[^\\n(,']*?\\b" + identifier + "\\b[^\\n),']*(?:, *)?", 'g'), ' ')
.replace(/, *(?=',)/, '')
.replace(/,(?=\s*\))/, '');
});