🌐 AI搜索 & 代理 主页
Skip to content

Commit bd984f0

Browse files
kumarmjtimmywil
authored andcommitted
Core: Move holdReady to deprecated
Fixes gh-3288 Close gh-3306
1 parent 0588d0c commit bd984f0

File tree

3 files changed

+7
-18
lines changed

3 files changed

+7
-18
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ jQuery.extend( {
3232
// the ready event fires. See #6781
3333
readyWait: 1,
3434

35-
// Hold (or release) the ready event
36-
holdReady: function( hold ) {
37-
if ( hold ) {
38-
jQuery.readyWait++;
39-
} else {
40-
jQuery.ready( true );
41-
}
42-
},
43-
4435
ready: function( wait ) {
4536

4637
// Abort if there are pending holds or we're already ready

src/core/ready.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ jQuery.extend( {
3434
// the ready event fires. See #6781
3535
readyWait: 1,
3636

37-
// Hold (or release) the ready event
38-
holdReady: function( hold ) {
39-
if ( hold ) {
40-
jQuery.readyWait++;
41-
} else {
42-
jQuery.ready( true );
43-
}
44-
},
45-
4637
// Handle when the DOM is ready
4738
ready: function( wait ) {
4839

src/deprecated.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ jQuery.fn.extend( {
2222
return arguments.length === 1 ?
2323
this.off( selector, "**" ) :
2424
this.off( types, selector || "**", fn );
25+
},
26+
holdReady: function( hold ) {
27+
if ( hold ) {
28+
jQuery.readyWait++;
29+
} else {
30+
jQuery.ready( true );
31+
}
2532
}
2633
} );
2734

0 commit comments

Comments
 (0)