projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website]
/
web
/
core
/
misc
/
debounce.es6.js
diff --git
a/web/core/misc/debounce.es6.js
b/web/core/misc/debounce.es6.js
index 56ba0db681608ce0ece8be4211932fd25a6d5c82..2defb4514f14957ca52c49c0ef6eb4262cf4b070 100644
(file)
--- a/
web/core/misc/debounce.es6.js
+++ b/
web/core/misc/debounce.es6.js
@@
-26,13
+26,12
@@
* @return {function}
* The debounced function.
*/
* @return {function}
* The debounced function.
*/
-Drupal.debounce = function
(func, wait, immediate) {
+Drupal.debounce = function(func, wait, immediate) {
let timeout;
let result;
let timeout;
let result;
- return function
(
) {
+ return function
(...args
) {
const context = this;
const context = this;
- const args = arguments;
- const later = function () {
+ const later = function() {
timeout = null;
if (!immediate) {
result = func.apply(context, args);
timeout = null;
if (!immediate) {
result = func.apply(context, args);