fixed bad wrapper around seTimeout

pull/2/head
gorhill 10 years ago
parent 9b45f27792
commit cef90f0b20

@ -39,6 +39,12 @@ vAPI.sessionId = String.fromCharCode(Date.now() % 25 + 97) +
/******************************************************************************/
vAPI.setTimeout = vAPI.setTimeout || function(callback, delay) {
return setTimeout(function() { callback(); }, delay);
};
/******************************************************************************/
vAPI.shutdown = (function() {
var jobs = [];
@ -200,12 +206,6 @@ if ( window !== window.top ) {
/******************************************************************************/
vAPI.setTimeout = vAPI.setTimeout || function(callback, delay) {
setTimeout(function() { callback(); }, delay);
};
/******************************************************************************/
})(this);
/******************************************************************************/

@ -41,6 +41,12 @@ self.vAPI = self.vAPI || {};
/******************************************************************************/
vAPI.setTimeout = vAPI.setTimeout || function(callback, delay) {
return setTimeout(function() { callback(); }, delay);
};
/******************************************************************************/
// http://www.w3.org/International/questions/qa-scripts#directions
var setScriptDirection = function(language) {
@ -153,12 +159,6 @@ vAPI.localStorage = {
/******************************************************************************/
vAPI.setTimeout = vAPI.setTimeout || function(callback, delay) {
setTimeout(function() { callback(); }, delay);
};
/******************************************************************************/
})();
/******************************************************************************/

Loading…
Cancel
Save