Permalink
Browse files
Core: Move holdReady to deprecated
- Loading branch information...
Showing
with
7 additions
and
18 deletions.
-
+0
−9
src/core/ready-no-deferred.js
-
+0
−9
src/core/ready.js
-
+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
|
|
|
|
|
|
@@ -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 ) {
|
|
|
|
|
|
|
|
|
@@ -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