"./core",
"./var/document",
"./var/rnotwhite",
- "./var/setTimeout",
- "./var/clearTimeout",
"./ajax/var/location",
"./ajax/var/nonce",
"./ajax/var/rquery",
"./ajax/parseJSON",
"./ajax/parseXML",
"./deferred"
-], function( jQuery, document, rnotwhite, setTimeout, clearTimeout,
- location, nonce, rquery ) {
+], function( jQuery, document, rnotwhite, location, nonce, rquery ) {
var
rhash = /#.*$/,
// Timeout
if ( s.async && s.timeout > 0 ) {
- timeoutTimer = setTimeout(function() {
+ timeoutTimer = window.setTimeout(function() {
jqXHR.abort("timeout");
}, s.timeout );
}
// Clear timeout if it exists
if ( timeoutTimer ) {
- clearTimeout( timeoutTimer );
+ window.clearTimeout( timeoutTimer );
}
// Dereference transport for early garbage collection
define([
"../core",
"../var/document",
- "../var/setTimeout",
"../deferred"
-], function( jQuery, document, setTimeout ) {
+], function( jQuery, document ) {
// The deferred used on DOM ready
var readyList;
// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
if ( document.readyState === "complete" ) {
// Handle it asynchronously to allow scripts the opportunity to delay ready
- setTimeout( jQuery.ready );
+ window.setTimeout( jQuery.ready );
} else {
define([
"./core",
"./var/slice",
- "./var/setTimeout",
"./callbacks"
-], function( jQuery, slice, setTimeout ) {
+], function( jQuery, slice ) {
function Identity( v ) {
return v;
if ( depth ) {
process();
} else {
- setTimeout( process );
+ window.setTimeout( process );
}
};
}
"./core",
"./var/document",
"./var/rcssNum",
- "./var/setInterval",
- "./var/clearInterval",
- "./var/setTimeout",
"./css/var/cssExpand",
"./css/var/isHidden",
"./css/var/swap",
"./manipulation",
"./css",
"./effects/Tween"
-], function( jQuery, document, rcssNum, setInterval, clearInterval, setTimeout,
- cssExpand, isHidden, swap, adjustCSS, dataPriv, showHide ) {
+], function( jQuery, document, rcssNum, cssExpand, isHidden, swap, adjustCSS, dataPriv, showHide ) {
var
fxNow, timerId,
// Animations created synchronously will run synchronously
function createFxNow() {
- setTimeout(function() {
+ window.setTimeout(function() {
fxNow = undefined;
});
return ( fxNow = jQuery.now() );
if ( !timerId ) {
timerId = window.requestAnimationFrame ?
window.requestAnimationFrame( raf ) :
- setInterval( jQuery.fx.tick, jQuery.fx.interval );
+ window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
}
};
if ( window.cancelAnimationFrame ) {
window.cancelAnimationFrame( timerId );
} else {
- clearInterval( timerId );
+ window.clearInterval( timerId );
}
timerId = null;
define([
"../core",
- "../var/setTimeout",
- "../var/clearTimeout",
"../queue",
"../effects" // Delay is optional because of this dependency
-], function( jQuery, setTimeout, clearTimeout ) {
+], function( jQuery ) {
// Based off of the plugin by Clint Helfers, with permission.
// http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
type = type || "fx";
return this.queue( type, function( next, hooks ) {
- var timeout = setTimeout( next, time );
+ var timeout = window.setTimeout( next, time );
hooks.stop = function() {
- clearTimeout( timeout );
+ window.clearTimeout( timeout );
};
});
};
+++ /dev/null
-define(function() {
- return window.clearInterval;
-});
+++ /dev/null
-define(function() {
- return window.clearTimeout;
-});
+++ /dev/null
-define(function() {
- return window.setInterval;
-});
+++ /dev/null
-define(function() {
- return window.setTimeout;
-});