mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Update _.createCallback dependencies and fix typo in removeFromCreateIterator.
Former-commit-id: 8478aadcdcb3fbf30a481de1bc515510959a2396
This commit is contained in:
4
build.js
4
build.js
@@ -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*\))/, '');
|
||||
});
|
||||
|
||||
@@ -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),
|
||||
|
||||
2
dist/lodash.compat.js
vendored
2
dist/lodash.compat.js
vendored
@@ -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
2
dist/lodash.js
vendored
@@ -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)),
|
||||
|
||||
2
dist/lodash.underscore.js
vendored
2
dist/lodash.underscore.js
vendored
@@ -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)),
|
||||
|
||||
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user