1 import { jQuery } from "../core.js";
4 import "../effects.js"; // Delay is optional because of this dependency
6 // Based off of the plugin by Clint Helfers, with permission.
7 jQuery.fn.delay = function( time, type ) {
8 time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
11 return this.queue( type, function( next, hooks ) {
12 var timeout = window.setTimeout( next, time );
13 hooks.stop = function() {
14 window.clearTimeout( timeout );