Core: Move holdReady to deprecated

Fixes gh-3288
Close gh-3306
This commit is contained in:
Manoj Kumar 2016-08-31 04:01:31 +00:00 committed by Timmy Willison
parent 0588d0ce35
commit bd984f0ee2
No known key found for this signature in database
GPG Key ID: 5F0C8B73EF56CE6F
3 changed files with 7 additions and 18 deletions

View File

@ -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 File

@ -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 File

@ -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 );
}
}
} );