I want to redefine a function that is being bound to document.ready by
someone else. Actually, I'd prefer just to unbind the function, but
the initial binding is in a file that I don't want to change, and uses
this syntax:

$(theFunction);

I understand from http://dev.jquery.com/ticket/1311#comment:3 that
this syntax is not supported for the 'unbind from document.ready'
functionality that was added in 1.2.2. But I'm wondering if there is a
way around this, for instance, to redefine the function using
something like:

window['theFunction'] = function () { // my definition... };

But this doesn't seem to work -- the other definition of "theFunction"
gets executed in any case.

Is there any way to achieve what I am trying to do without changing
the other file?

Reply via email to