Permalink
Browse files

Core: Move holdReady to deprecated

Fixes gh-3288
Close gh-3306
  • Loading branch information...
kumarmj authored and timmywil committed Aug 31, 2016
1 parent 0588d0c commit bd984f0ee2cf40107a669d80d92566b8625b1e6b
Showing with 7 additions and 18 deletions.
  1. +0 −9 src/core/ready-no-deferred.js
  2. +0 −9 src/core/ready.js
  3. +7 −0 src/deprecated.js
@@ -32,15 +32,6 @@ jQuery.extend( {
// the ready event fires. See #6781
readyWait: 1,
// Hold (or release) the ready event
holdReady: function( hold ) {
if ( hold ) {
jQuery.readyWait++;
} else {
jQuery.ready( true );
}
},
ready: function( wait ) {
// Abort if there are pending holds or we're already ready
View
@@ -34,15 +34,6 @@ jQuery.extend( {
// the ready event fires. See #6781
readyWait: 1,
// Hold (or release) the ready event
holdReady: function( hold ) {
if ( hold ) {
jQuery.readyWait++;
} else {
jQuery.ready( true );
}
},
// Handle when the DOM is ready
ready: function( wait ) {
View
@@ -22,6 +22,13 @@ jQuery.fn.extend( {
return arguments.length === 1 ?
this.off( selector, "**" ) :
this.off( types, selector || "**", fn );
},
holdReady: function( hold ) {
if ( hold ) {
jQuery.readyWait++;
} else {
jQuery.ready( true );
}
}
} );

0 comments on commit bd984f0

Please sign in to comment.