@kizmann/pico-js 0.4.8 → 0.4.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/pico-js",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -226,8 +226,16 @@ export class Any
226
226
  throttle = ref();
227
227
  }
228
228
 
229
+ let timer = null;
230
+
229
231
  return (...args) => {
230
232
 
233
+ clearTimeout(timer);
234
+
235
+ timer = setTimeout(() => {
236
+ throttle = null;
237
+ }, delay);
238
+
231
239
  if ( throttle === true ) {
232
240
  return;
233
241
  }