From 3df41db0369cfaf0fc229c633eb87f222ad49357 Mon Sep 17 00:00:00 2001 From: jeresig Date: Fri, 22 Oct 2010 00:08:34 -0400 Subject: [PATCH] Make sure that the ready event doesn't double-fire when .bind(ready) is used. Fixes #7247. --- src/core.js | 4 ++-- 1 file 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" ); } } }, -- 2.39.5