From 3885a186815deb631b43e02a9523cb23ac0dd704 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 12 Feb 2014 03:05:08 -0500 Subject: [PATCH] feature(util) rm setTimeout --- lib/util.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/lib/util.js b/lib/util.js index 553db0b4..425e8a3a 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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 *