Make sure that the ready event doesn't double-fire when .bind(ready) is used. Fixes #7247.
This commit is contained in:
parent
9be7461c3c
commit
3df41db036
|
@ -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" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue