scratch – Blame information for rev 125

Subversion Repositories:
Rev:
Rev Author Line No. Line
125 office 1 define([
58 office 2 "../core",
3 "../queue",
4 "../effects" // Delay is optional because of this dependency
5 ], function( jQuery ) {
6  
7 // Based off of the plugin by Clint Helfers, with permission.
125 office 8 // http://blindsignals.com/index.php/2009/07/jquery-delay/
58 office 9 jQuery.fn.delay = function( time, type ) {
10 time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
11 type = type || "fx";
12  
13 return this.queue( type, function( next, hooks ) {
125 office 14 var timeout = setTimeout( next, time );
58 office 15 hooks.stop = function() {
125 office 16 clearTimeout( timeout );
58 office 17 };
125 office 18 });
58 office 19 };
20  
21 return jQuery.fn.delay;
125 office 22 });