Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / core / misc / debounce.es6.js
index 56ba0db681608ce0ece8be4211932fd25a6d5c82..2defb4514f14957ca52c49c0ef6eb4262cf4b070 100644 (file)
  * @return {function}
  *   The debounced function.
  */
-Drupal.debounce = function (func, wait, immediate) {
+Drupal.debounce = function(func, wait, immediate) {
   let timeout;
   let result;
-  return function () {
+  return function(...args) {
     const context = this;
-    const args = arguments;
-    const later = function () {
+    const later = function() {
       timeout = null;
       if (!immediate) {
         result = func.apply(context, args);