@progress/kendo-vue-gauges
Version:
9 lines (8 loc) • 803 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("@progress/kendo-vue-common"),u=1e3/60,d=c=>{let o,s,e=[];const i=()=>o,n=t=>{o=c(o,t),l.canUseDOM&&(window.clearTimeout(s),s=window.setTimeout(()=>e.forEach(r=>r()),u))},a=t=>(e.push(t),()=>e=e.filter(r=>r!==t));return n({}),{getState:i,dispatch:n,subscribe:a}};exports.THROTTLE_MS=u;exports.default=d;