summaryrefslogtreecommitdiffstats
path: root/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/queue
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-05-12 06:26:03 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-12 06:26:03 +0000
commit909be5b53a6141f84480dc29eb5dbfffe5c35fad (patch)
treef48c1a1e98dffcbe393a428f06e02fceaf937875 /testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/queue
parent9437526b739c41c0a1fc25396677d2f134d4ce80 (diff)
parent55d74f86440a5a804d4551e04f7fd39518af0723 (diff)
Merge "add web portal framework for TestAPI"
Diffstat (limited to 'testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/queue')
-rw-r--r--testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/queue/delay.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/queue/delay.js b/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/queue/delay.js
new file mode 100644
index 0000000..d471eed
--- /dev/null
+++ b/testapi/3rd_party/static/testapi-ui/assets/lib/jquery/src/queue/delay.js
@@ -0,0 +1,24 @@
+define( [
+ "../core",
+ "../queue",
+ "../effects" // Delay is optional because of this dependency
+], function( jQuery ) {
+
+"use strict";
+
+// Based off of the plugin by Clint Helfers, with permission.
+// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
+jQuery.fn.delay = function( time, type ) {
+ time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
+ type = type || "fx";
+
+ return this.queue( type, function( next, hooks ) {
+ var timeout = window.setTimeout( next, time );
+ hooks.stop = function() {
+ window.clearTimeout( timeout );
+ };
+ } );
+};
+
+return jQuery.fn.delay;
+} );