mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Remove debounceOptions var.
This commit is contained in:
@@ -197,13 +197,6 @@
|
||||
cloneableTags[mapTag] = cloneableTags[setTag] =
|
||||
cloneableTags[weakMapTag] = false;
|
||||
|
||||
/** Used as an internal `_.debounce` options object by `_.throttle`. */
|
||||
var debounceOptions = {
|
||||
'leading': false,
|
||||
'maxWait': 0,
|
||||
'trailing': false
|
||||
};
|
||||
|
||||
/** Used to map latin-1 supplementary letters to basic latin letters. */
|
||||
var deburredLetters = {
|
||||
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
||||
@@ -8369,10 +8362,7 @@
|
||||
leading = 'leading' in options ? !!options.leading : leading;
|
||||
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
||||
}
|
||||
debounceOptions.leading = leading;
|
||||
debounceOptions.maxWait = +wait;
|
||||
debounceOptions.trailing = trailing;
|
||||
return debounce(func, wait, debounceOptions);
|
||||
return debounce(func, wait, { 'leading': leading, 'maxWait': +wait, 'trailing': trailing });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user