aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2014-03-03 22:04:23 -0500
committerDave Methvin <dave.methvin@gmail.com>2014-03-04 21:00:04 -0500
commit2df1aad6a1c9376c2a477eba26ee992113ed1c23 (patch)
treeada1fba6f6f69fbc63d41aff9a32f343e8b9f006 /src
parentf4b37d89820535d6c7503925aa8872645681a865 (diff)
downloadjquery-2df1aad6a1c9376c2a477eba26ee992113ed1c23.tar.gz
jquery-2df1aad6a1c9376c2a477eba26ee992113ed1c23.zip
Core: Do not run window.onready when ready
Fixes #14802
Diffstat (limited to 'src')
-rw-r--r--src/core/ready.js5
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" );
}
}
});