@targoninc/jess-components 0.0.32 → 0.0.33
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.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -748,7 +748,11 @@ var InputType;
|
|
|
748
748
|
|
|
749
749
|
// src/src/Debounce.ts
|
|
750
750
|
var debounceMap = {};
|
|
751
|
-
function debounce(identifier, func, delay =
|
|
751
|
+
function debounce(identifier, func, delay = 0) {
|
|
752
|
+
if (!delay) {
|
|
753
|
+
func();
|
|
754
|
+
return;
|
|
755
|
+
}
|
|
752
756
|
if (debounceMap[identifier]) {
|
|
753
757
|
clearTimeout(debounceMap[identifier]);
|
|
754
758
|
}
|