UNPKG
automizy-js
Version:
latest (1.0.0)
1.0.0
Automizy widget collection
developers.automizy.com/automizyjs
automizy-js
/
src
/
functions
/
delay.js
13 lines
(11 loc)
•
254 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
define
([
'automizy/core'
],
function
(
) { $A.
delay
=
function
(
a
) {
var
timer =
0
;
return
function
(
callback, ms
) {
clearTimeout
(timer); timer =
setTimeout
(callback, ms); }; }; });