Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Core: Move holdReady to deprecated
Fixes gh-3288
Close gh-3306
  • Loading branch information
kumarmj authored and timmywil committed Feb 13, 2017
1 parent 0588d0c commit bd984f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
9 changes: 0 additions & 9 deletions src/core/ready-no-deferred.js
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions src/core/ready.js
Expand Up @@ -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 ) {

Expand Down
7 changes: 7 additions & 0 deletions src/deprecated.js
Expand Up @@ -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 );
}
}
} );

Expand Down

0 comments on commit bd984f0

Please sign in to comment.