update components
This commit is contained in:
parent
e6183509f8
commit
c01a55384e
26 changed files with 296 additions and 115 deletions
|
@ -1,6 +1,7 @@
|
|||
define( [
|
||||
"../core",
|
||||
"../var/document",
|
||||
"../core/readyException",
|
||||
"../deferred"
|
||||
], function( jQuery, document ) {
|
||||
|
||||
|
@ -11,7 +12,15 @@ var readyList = jQuery.Deferred();
|
|||
|
||||
jQuery.fn.ready = function( fn ) {
|
||||
|
||||
readyList.then( fn );
|
||||
readyList
|
||||
.then( fn )
|
||||
|
||||
// Wrap jQuery.readyException in a function so that the lookup
|
||||
// happens at the time of error handling instead of callback
|
||||
// registration.
|
||||
.catch( function( error ) {
|
||||
jQuery.readyException( error );
|
||||
} );
|
||||
|
||||
return this;
|
||||
};
|
||||
|
|
13
dashboard-ui/bower_components/jquery/src/core/readyException.js
vendored
Normal file
13
dashboard-ui/bower_components/jquery/src/core/readyException.js
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
define( [
|
||||
"../core"
|
||||
], function( jQuery ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
jQuery.readyException = function( error ) {
|
||||
window.setTimeout( function() {
|
||||
throw error;
|
||||
} );
|
||||
};
|
||||
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue