mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +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': [],
|
'compose': [],
|
||||||
'contains': ['baseEach', 'getIndexOf', 'isString'],
|
'contains': ['baseEach', 'getIndexOf', 'isString'],
|
||||||
'countBy': ['createCallback', 'forEach'],
|
'countBy': ['createCallback', 'forEach'],
|
||||||
'createCallback': ['bind', 'identity', 'isEqual', 'isObject', 'keys', 'setBindData'],
|
'createCallback': ['baseIsEqual', 'bind', 'identity', 'isObject', 'keys', 'setBindData'],
|
||||||
'debounce': ['isObject'],
|
'debounce': ['isObject'],
|
||||||
'defaults': ['createCallback', 'createIterator'],
|
'defaults': ['createCallback', 'createIterator'],
|
||||||
'defer': ['bind'],
|
'defer': ['bind'],
|
||||||
@@ -1670,7 +1670,7 @@
|
|||||||
// remove `factory` arguments
|
// remove `factory` arguments
|
||||||
source = source.replace(snippet, function(match) {
|
source = source.replace(snippet, function(match) {
|
||||||
return match
|
return match
|
||||||
.replace(RegExp("[^\\n(,']*?\\b" + identifier + "[^\\n),']*(?:, *)?", 'g'), ' ')
|
.replace(RegExp("[^\\n(,']*?\\b" + identifier + "\\b[^\\n),']*(?:, *)?", 'g'), ' ')
|
||||||
.replace(/, *(?=',)/, '')
|
.replace(/, *(?=',)/, '')
|
||||||
.replace(/,(?=\s*\))/, '');
|
.replace(/,(?=\s*\))/, '');
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -357,12 +357,7 @@
|
|||||||
// match `baseUniq`, `cachePush`, `createCache`, `createIterator`, `getObject`, and `releaseObject` functions
|
// match `baseUniq`, `cachePush`, `createCache`, `createIterator`, `getObject`, and `releaseObject` functions
|
||||||
'^( *)(?:var|function) +(?:baseUniq|cachePush|createCache|createIterator|getObject|releaseObject)\\b[\\s\\S]+?\\n\\3}'
|
'^( *)(?:var|function) +(?:baseUniq|cachePush|createCache|createIterator|getObject|releaseObject)\\b[\\s\\S]+?\\n\\3}'
|
||||||
].join('|'), 'gm')
|
].join('|'), 'gm')
|
||||||
);
|
) || [];
|
||||||
|
|
||||||
// exit early if no compilable snippets
|
|
||||||
if (!snippets) {
|
|
||||||
return source;
|
|
||||||
}
|
|
||||||
|
|
||||||
snippets.forEach(function(snippet, index) {
|
snippets.forEach(function(snippet, index) {
|
||||||
var isFunc = /\bfunction *[ \w]*\(/.test(snippet),
|
var isFunc = /\bfunction *[ \w]*\(/.test(snippet),
|
||||||
|
|||||||
2
dist/lodash.compat.js
vendored
2
dist/lodash.compat.js
vendored
@@ -4259,7 +4259,7 @@
|
|||||||
end = start;
|
end = start;
|
||||||
start = 0;
|
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
|
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = nativeMax(0, ceil((end - start) / step)),
|
length = nativeMax(0, ceil((end - start) / step)),
|
||||||
|
|||||||
2
dist/lodash.js
vendored
2
dist/lodash.js
vendored
@@ -3936,7 +3936,7 @@
|
|||||||
end = start;
|
end = start;
|
||||||
start = 0;
|
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
|
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = nativeMax(0, ceil((end - start) / step)),
|
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;
|
end = start;
|
||||||
start = 0;
|
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
|
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = nativeMax(0, ceil((end - start) / step)),
|
length = nativeMax(0, ceil((end - start) / step)),
|
||||||
|
|||||||
@@ -4297,7 +4297,7 @@
|
|||||||
end = start;
|
end = start;
|
||||||
start = 0;
|
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
|
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = nativeMax(0, ceil((end - start) / step)),
|
length = nativeMax(0, ceil((end - start) / step)),
|
||||||
|
|||||||
Reference in New Issue
Block a user