diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ready.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/ready.js b/src/core/ready.js index e64977cd9..122b1610d 100644 --- a/src/core/ready.js +++ b/src/core/ready.js @@ -51,8 +51,9 @@ jQuery.extend({ readyList.resolveWith( document, [ jQuery ] ); // Trigger any bound ready events - if ( jQuery.fn.trigger ) { - jQuery( document ).trigger("ready").off("ready"); + if ( jQuery.fn.triggerHandler ) { + jQuery( document ).triggerHandler( "ready" ); + jQuery( document ).off( "ready" ); } } }); |