.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:
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
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
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
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
5 matches
Mail list logo