update components

This commit is contained in:
Luke Pulverenti
2016-07-08 14:10:20 -04:00
parent e6183509f8
commit c01a55384e
26 changed files with 296 additions and 115 deletions
+10 -1
View File
@@ -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;
};
@@ -0,0 +1,13 @@
define( [
"../core"
], function( jQuery ) {
"use strict";
jQuery.readyException = function( error ) {
window.setTimeout( function() {
throw error;
} );
};
} );