File tree Expand file tree Collapse file tree 3 files changed +7
-18
lines changed
Expand file tree Collapse file tree 3 files changed +7
-18
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments