]> source.dussan.org Git - jquery.git/commitdiff
Core: Move holdReady to deprecated
authorManoj Kumar <nithmanoj@gmail.com>
Wed, 31 Aug 2016 04:01:31 +0000 (04:01 +0000)
committerTimmy Willison <4timmywil@gmail.com>
Mon, 13 Feb 2017 15:55:39 +0000 (10:55 -0500)
Fixes gh-3288
Close gh-3306

src/core/ready-no-deferred.js
src/core/ready.js
src/deprecated.js

index 02d6014013f4ad39394f4aa0f4ea5fa99c581844..a7722ae9a5730a084afb736ff9e430c932d0b327 100644 (file)
@@ -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
index 53b1b2da7504191253d0436aa35521a857b2b1e2..794feeec06006be4a9d8981d05197d370fd579b8 100644 (file)
@@ -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 ) {
 
index 0329b95640ebb3a365c7df3836a61f017f3199ea..3c902657ee6a3623d23b8b53f9c344b73f59982f 100644 (file)
@@ -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 );
+               }
        }
 } );