Skip to main content

Bug Tracker

Side navigation

#1311 closed enhancement (fixed)

Opened June 21, 2007 05:34AM UTC

Closed March 26, 2008 03:16AM UTC


Reported by: jimmont Owned by:
Priority: major Milestone: 1.2.2
Component: event Version: 1.1.2
Keywords: document ready bind unbind onload Cc:
Blocked by: Blocking:

In a script I initialize functions using the ready event:

$(document).ready(function(){ });


Is it possible to change the behavior of the ready event to be more like other events (eg click) so that the following will remove the previous functionality (and prevent it from happening)? (In this scenario I see the previous code as loaded from an external script, then a subsequent script does the unbinding and attaches new functionality to the page.)



This is a followup to the dialog at:

thanks very much

Attachments (0)
Change History (3)

Changed June 21, 2007 07:18AM UTC by john comment:1

type: bugenhancement

Changed November 20, 2007 10:47PM UTC by brandon comment:2


I've started work on this in the events_enhancement branch.

Changed March 26, 2008 03:16AM UTC by brandon comment:3

resolution: → fixed
status: newclosed

This functionality is now available in 1.2.2+

Although you must use the typical bind syntax in order to use the unbind syntax.

$(document).bind('ready', fn);

$(document).unbind('ready', fn);