Make sure that the ready event doesn't double-fire when .bind(ready) is used. Fixes #7247.

This commit is contained in:
jeresig 2010-10-22 00:08:34 -04:00
parent 9be7461c3c
commit 3df41db036

View file

@ -424,8 +424,8 @@ jQuery.extend({
} }
// Trigger any bound ready events // Trigger any bound ready events
if ( jQuery.fn.triggerHandler ) { if ( jQuery.fn.trigger ) {
jQuery( document ).triggerHandler( "ready" ); jQuery( document ).trigger( "ready" ).unbind( "ready" );
} }
} }
}, },