PageSourceSearch

https://corp.amway.com.hk/core/misc/debounce.js?v=9.1.9

js amway.com.hk collected 2026-10-03 22:09:21 UTC 752 bytes, 36 lines download raw bytes

1/**
2* DO NOT EDIT THIS FILE.
3* See the following change record for more information,
4* https://www.drupal.org/node/2815083
5* @preserve
6**/
7
8Drupal.debounce = function (func, wait, immediate) {
9  var timeout;
10  var result;
11  return function () {
12    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13      args[_key] = arguments[_key];
14    }
15
16    var context = this;
17
18    var later = function later() {
19      timeout = null;
20
21      if (!immediate) {
22        result = func.apply(context, args);
23      }
24    };
25
26    var callNow = immediate && !timeout;
27    clearTimeout(timeout);
28    timeout = setTimeout(later, wait);
29
30    if (callNow) {
31      result = func.apply(context, args);
32    }
33
34    return result;
35  };
36};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.