[jQuery] Re: $(document).unbind('ready');

2007-06-20 Thread Michael Geary
.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] Re: $(document).unbind('ready');

2007-06-20 Thread jim
Didn't realize document.ready wasn't an event...thanks Mike I can think of solutions to the problem but in general was trying todo something like: // in default library $().ready(function(){ /* do generic things */ }) // in optional asset (if present) $().ready(function(){ /* cancel the 'do

[jQuery] Re: $(document).unbind('ready');

2007-06-20 Thread Jörn Zaefferer
jim wrote: Didn't realize document.ready wasn't an event...thanks Mike I can think of solutions to the problem but in general was trying todo something like: [...] How about this: function ready() { // do generic stuff } $(function() { ready(); }); // optional assert, overwrites generic

[jQuery] Re: $(document).unbind('ready');

2007-06-20 Thread jim
Is it possible to change this behavior in jQuery so that the $ (document).bind('ready'... and unbind methods work (more) like other events? thanks, Jim

[jQuery] Re: $(document).unbind('ready');

2007-06-20 Thread John Resig
Possibly - file a bug on it and we might be able to get to it for jQuery 1.2. On 6/20/07, jim [EMAIL PROTECTED] wrote: Is it possible to change this behavior in jQuery so that the $ (document).bind('ready'... and unbind methods work (more) like other events? thanks, Jim