.ready isn't really an event, it's all special case code.
 
Instead of trying to unbind a function, you could set a flag and test it in
the function in question.
 
But what it is you're really trying to do? I don't see exactly what the goal
is here.
 
-Mike


  _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim M
Sent: Wednesday, June 20, 2007 1:03 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] $(document).unbind('ready');


Is it possible to unbind functions from the $().ready() event?

I have scripts that do this:

$(document).ready(function(){ /* make things happen */ });

$().ready(fnRef);

In a following script I'd like to unbind these and have tried the following,
problem is it doesn't seem to work: 

$().unbind('ready');

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

Any suggestions? A quick search of the docs and maillist didn't reveal a
solution.

thanks in advance,
Jim


Reply via email to