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*\))/, '');
});

View File

@@ -357,12 +357,7 @@
// match `baseUniq`, `cachePush`, `createCache`, `createIterator`, `getObject`, and `releaseObject` functions
'^( *)(?:var|function) +(?:baseUniq|cachePush|createCache|createIterator|getObject|releaseObject)\\b[\\s\\S]+?\\n\\3}'
].join('|'), 'gm')
);
// exit early if no compilable snippets
if (!snippets) {
return source;
}
) || [];
snippets.forEach(function(snippet, index) {
var isFunc = /\bfunction *[ \w]*\(/.test(snippet),

View File

@@ -4259,7 +4259,7 @@
end = start;
start = 0;
}
// use `Array(length)` so V8 will avoid the slower "dictionary" mode
// use `Array(length)` so engines, like Chakra and V8, avoid slower modes
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
var index = -1,
length = nativeMax(0, ceil((end - start) / step)),

2
dist/lodash.js vendored
View File

@@ -3936,7 +3936,7 @@
end = start;
start = 0;
}
// use `Array(length)` so V8 will avoid the slower "dictionary" mode
// use `Array(length)` so engines, like Chakra and V8, avoid slower modes
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
var index = -1,
length = nativeMax(0, ceil((end - start) / step)),

View File

@@ -2995,7 +2995,7 @@
end = start;
start = 0;
}
// use `Array(length)` so V8 will avoid the slower "dictionary" mode
// use `Array(length)` so engines, like Chakra and V8, avoid slower modes
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
var index = -1,
length = nativeMax(0, ceil((end - start) / step)),

View File

@@ -4297,7 +4297,7 @@
end = start;
start = 0;
}
// use `Array(length)` so V8 will avoid the slower "dictionary" mode
// use `Array(length)` so engines, like Chakra and V8, avoid slower modes
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
var index = -1,
length = nativeMax(0, ceil((end - start) / step)),