Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / misc / debounce.es6.js
index e77940b9efa3883f82032f007e8b55a88ba2ee29..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 (...args) {
+  return function(...args) {
     const context = this;
-    const later = function () {
+    const later = function() {
       timeout = null;
       if (!immediate) {
         result = func.apply(context, args);