@lenne.tech/ng-base 13.2.1 → 13.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1465,12 +1465,12 @@ class GraphQLMeta {
1465
1465
  }
1466
1466
 
1467
1467
  function debounce(delay = 300) {
1468
- return (target, propertyKey, descriptor) => {
1469
- const timeoutKey = Symbol();
1468
+ return function (target, propertyKey, descriptor) {
1469
+ let timeout = null;
1470
1470
  const original = descriptor.value;
1471
- descriptor.value = (...args) => {
1472
- clearTimeout(this[timeoutKey]);
1473
- this[timeoutKey] = setTimeout(() => original.apply(this, args), delay);
1471
+ descriptor.value = function (...args) {
1472
+ clearTimeout(timeout);
1473
+ timeout = setTimeout(() => original.apply(this, args), delay);
1474
1474
  };
1475
1475
  return descriptor;
1476
1476
  };