From bd984f0ee2cf40107a669d80d92566b8625b1e6b Mon Sep 17 00:00:00 2001 From: Manoj Kumar Date: Wed, 31 Aug 2016 04:01:31 +0000 Subject: [PATCH] Core: Move holdReady to deprecated Fixes gh-3288 Close gh-3306 --- src/core/ready-no-deferred.js | 9 --------- src/core/ready.js | 9 --------- src/deprecated.js | 7 +++++++ 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 ); + } } } ); -- 2.39.5