X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmisc%2Fdebounce.es6.js;fp=web%2Fcore%2Fmisc%2Fdebounce.es6.js;h=2defb4514f14957ca52c49c0ef6eb4262cf4b070;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=e77940b9efa3883f82032f007e8b55a88ba2ee29;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/misc/debounce.es6.js b/web/core/misc/debounce.es6.js index e77940b9e..2defb4514 100644 --- a/web/core/misc/debounce.es6.js +++ b/web/core/misc/debounce.es6.js @@ -26,12 +26,12 @@ * @return {function} * The debounced function. */ -Drupal.debounce = function (func, wait, immediate) { +Drupal.debounce = function(func, wait, immediate) { let timeout; let result; - return function (...args) { + return function(...args) { const context = this; - const later = function () { + const later = function() { timeout = null; if (!immediate) { result = func.apply(context, args);