Skip to content
Permalink
Browse files

Make sure that the ready event doesn't double-fire when .bind(ready) …

…is used. Fixes #7247.
  • Loading branch information...
jeresig committed Oct 22, 2010
1 parent 9be7461 commit 3df41db0369cfaf0fc229c633eb87f222ad49357
Showing with 2 additions and 2 deletions.
  1. +2 −2 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" );
}
}
},

0 comments on commit 3df41db

Please sign in to comment.
You can’t perform that action at this time.