From: Manoj Kumar Date: Wed, 31 Aug 2016 04:01:31 +0000 (+0000) Subject: Core: Move holdReady to deprecated X-Git-Tag: 3.2.0~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd984f0ee2cf40107a669d80d92566b8625b1e6b;p=jquery.git Core: Move holdReady to deprecated Fixes gh-3288 Close gh-3306 --- 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 ); + } } } );