mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Add _.debounce var dependency and remove Adobe JS engine cleanup in build.
Former-commit-id: 330e19ecf1a1d33e6207291aa05b103f68541e81
This commit is contained in:
6
build.js
6
build.js
@@ -293,6 +293,7 @@
|
||||
'createIterator': ['indicatorObject', 'objectTypes'],
|
||||
'createBound': ['reNative'],
|
||||
'createObject': ['reNative'],
|
||||
'debounce': ['reNative'],
|
||||
'defaults': ['defaultsIteratorOptions'],
|
||||
'defer': ['objectTypes', 'reNative'],
|
||||
'difference': ['largeArraySize'],
|
||||
@@ -3165,11 +3166,6 @@
|
||||
source = removeIsFunctionFork(source);
|
||||
source = removeCreateObjectFork(source);
|
||||
|
||||
// remove Adobe JS engine fix from `compareAscending`
|
||||
source = source.replace(matchFunction(source, 'compareAscending'), function(match) {
|
||||
return match.replace(/(?: *\/\/.*\n)*( *return ai[^:]+:).+/, '$1 1;');
|
||||
});
|
||||
|
||||
// replace `+new Date` with `Date.now` use in `_.debounce
|
||||
source = source.replace(matchFunction(source, 'debounce'), function(match) {
|
||||
return match.replace(/\+new Date\b/g, 'now()');
|
||||
|
||||
Reference in New Issue
Block a user