2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
8 Drupal.debounce = function (func, wait, immediate) {
12 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
13 args[_key] = arguments[_key];
17 var later = function later() {
20 result = func.apply(context, args);
23 var callNow = immediate && !timeout;
24 clearTimeout(timeout);
25 timeout = setTimeout(later, wait);
27 result = func.apply(context, args);