aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoj Kumar <nithmanoj@gmail.com>2016-08-31 04:01:31 +0000
committerTimmy Willison <4timmywil@gmail.com>2017-02-13 10:55:39 -0500
commitbd984f0ee2cf40107a669d80d92566b8625b1e6b (patch)
tree4b521d06ca43061369bcf9652e3e7fe8f28784f0
parent0588d0ce35458eccaa6a19f6350988d34496a31d (diff)
downloadjquery-bd984f0ee2cf40107a669d80d92566b8625b1e6b.tar.gz
jquery-bd984f0ee2cf40107a669d80d92566b8625b1e6b.zip
Core: Move holdReady to deprecated
Fixes gh-3288 Close gh-3306
-rw-r--r--src/core/ready-no-deferred.js9
-rw-r--r--src/core/ready.js9
-rw-r--r--src/deprecated.js7
3 files changed, 7 insertions, 18 deletions
diff --git a/src/core/ready-no-deferred.js b/src/core/ready-no-deferred.js
index 02d601401..a7722ae9a 100644
--- a/src/core/ready-no-deferred.js
+++ b/src/core/ready-no-deferred.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
diff --git a/src/core/ready.js b/src/core/ready.js
index 53b1b2da7..794feeec0 100644
--- a/src/core/ready.js
+++ b/src/core/ready.js
@@ -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 ) {
diff --git a/src/deprecated.js b/src/deprecated.js
index 0329b9564..3c902657e 100644
--- a/src/deprecated.js
+++ b/src/deprecated.js
@@ -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 );
+ }
}
} );