aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-10-22 00:08:34 -0400
committerjeresig <jeresig@gmail.com>2010-10-22 00:08:34 -0400
commit3df41db0369cfaf0fc229c633eb87f222ad49357 (patch)
treee62044a085b467fde3c83b16785506a01479ae46 /src/core.js
parent9be7461c3c7e85b1995766533db8806eb0909779 (diff)
downloadjquery-3df41db0369cfaf0fc229c633eb87f222ad49357.tar.gz
jquery-3df41db0369cfaf0fc229c633eb87f222ad49357.zip
Make sure that the ready event doesn't double-fire when .bind(ready) is used. Fixes #7247.
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.js b/src/core.js
index 99521d91c..3a37c4a89 100644
--- a/src/core.js
+++ b/src/core.js
@@ -424,8 +424,8 @@ jQuery.extend({
}
// Trigger any bound ready events
- if ( jQuery.fn.triggerHandler ) {
- jQuery( document ).triggerHandler( "ready" );
+ if ( jQuery.fn.trigger ) {
+ jQuery( document ).trigger( "ready" ).unbind( "ready" );
}
}
},