feature(util) rm setTimeout

This commit is contained in:
coderaiser 2014-02-12 03:05:08 -05:00
parent 994d7af9ed
commit 3885a18681

View file

@ -750,31 +750,6 @@
};
};
/**
* set timout before callback would be called
* @param pArgs {func, callback, time}
*/
this.setTimeout = function(pArgs) {
var lDone,
lFunc = pArgs.func,
lTime = pArgs.time || 1000,
lCallBack = function(pArgument) {
if (!lDone) {
lDone = Util.exec(pArgs.callback, pArgument);
}
};
var lTimeoutFunc = function() {
setTimeout(function() {
Util.exec(lFunc, lCallBack);
if (!lDone)
lTimeoutFunc();
}, lTime);
};
lTimeoutFunc();
};
/**
* function makes new array based on first
*