mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
Core: Move holdReady to deprecated
Fixes gh-3288 Close gh-3306
This commit is contained in:
parent
0588d0ce35
commit
bd984f0ee2
@ -32,15 +32,6 @@ jQuery.extend( {
|
|||||||
// the ready event fires. See #6781
|
// the ready event fires. See #6781
|
||||||
readyWait: 1,
|
readyWait: 1,
|
||||||
|
|
||||||
// Hold (or release) the ready event
|
|
||||||
holdReady: function( hold ) {
|
|
||||||
if ( hold ) {
|
|
||||||
jQuery.readyWait++;
|
|
||||||
} else {
|
|
||||||
jQuery.ready( true );
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
ready: function( wait ) {
|
ready: function( wait ) {
|
||||||
|
|
||||||
// Abort if there are pending holds or we're already ready
|
// Abort if there are pending holds or we're already ready
|
||||||
|
@ -34,15 +34,6 @@ jQuery.extend( {
|
|||||||
// the ready event fires. See #6781
|
// the ready event fires. See #6781
|
||||||
readyWait: 1,
|
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
|
// Handle when the DOM is ready
|
||||||
ready: function( wait ) {
|
ready: function( wait ) {
|
||||||
|
|
||||||
|
@ -22,6 +22,13 @@ jQuery.fn.extend( {
|
|||||||
return arguments.length === 1 ?
|
return arguments.length === 1 ?
|
||||||
this.off( selector, "**" ) :
|
this.off( selector, "**" ) :
|
||||||
this.off( types, selector || "**", fn );
|
this.off( types, selector || "**", fn );
|
||||||
|
},
|
||||||
|
holdReady: function( hold ) {
|
||||||
|
if ( hold ) {
|
||||||
|
jQuery.readyWait++;
|
||||||
|
} else {
|
||||||
|
jQuery.ready( true );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user