summaryrefslogtreecommitdiffstats
path: root/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready-no-deferred.js
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-07-05 22:37:35 -0400
committerGeorg Kunz <georg.kunz@ericsson.com>2018-07-25 09:17:09 +0000
commit58b91dd3baaaf72ab65062a4804403cd4a5935b2 (patch)
tree801b1f39b3bee25ecbaae387339955d55651e98b /cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready-no-deferred.js
parent947f1bf0147c40971fdae36feecd477ab3caf3b8 (diff)
Move OVP web portal code to a separate repo
The new repo for web portal is https://gerrit.opnfv.org/gerrit/dovetail-webportal JIRA: DOVETAIL-671 Change-Id: Iac085abc3d175b9a091d70d0448af56c7a6845e9 Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready-no-deferred.js')
-rw-r--r--cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready-no-deferred.js96
1 files changed, 0 insertions, 96 deletions
diff --git a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready-no-deferred.js b/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready-no-deferred.js
deleted file mode 100644
index a7722ae9..00000000
--- a/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready-no-deferred.js
+++ /dev/null
@@ -1,96 +0,0 @@
-define( [
- "../core",
- "../var/document"
-], function( jQuery, document ) {
-
-"use strict";
-
-var readyCallbacks = [],
- whenReady = function( fn ) {
- readyCallbacks.push( fn );
- },
- executeReady = function( fn ) {
-
- // Prevent errors from freezing future callback execution (gh-1823)
- // Not backwards-compatible as this does not execute sync
- window.setTimeout( function() {
- fn.call( document, jQuery );
- } );
- };
-
-jQuery.fn.ready = function( fn ) {
- whenReady( fn );
- return this;
-};
-
-jQuery.extend( {
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- whenReady = function( fn ) {
- readyCallbacks.push( fn );
-
- while ( readyCallbacks.length ) {
- fn = readyCallbacks.shift();
- if ( jQuery.isFunction( fn ) ) {
- executeReady( fn );
- }
- }
- };
-
- whenReady();
- }
-} );
-
-// Make jQuery.ready Promise consumable (gh-1778)
-jQuery.ready.then = jQuery.fn.ready;
-
-/**
- * The ready event handler and self cleanup method
- */
-function completed() {
- document.removeEventListener( "DOMContentLoaded", completed );
- window.removeEventListener( "load", completed );
- jQuery.ready();
-}
-
-// Catch cases where $(document).ready() is called
-// after the browser event has already occurred.
-// Support: IE9-10 only
-// Older IE sometimes signals "interactive" too soon
-if ( document.readyState === "complete" ||
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- window.setTimeout( jQuery.ready );
-
-} else {
-
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed );
-}
-
-} );