floepi schrieb:
> I guess i am doing something wrong. If i try this
> 
> $('#mainWindow').click(function() { alert("Hello"); });
> $("#mainWindow").unbind( "click", function() { alert("Hello"); });
> 
> where the functions are identical, it still does not work. It will invoke
> the alert function when i click in the mainWindow. 
> 
> I must be missing something. 
> 
> Cheers
> 
> Phil

The functions are identical but still they are not the same objects.

Try:

var hello = function() {
     alert("Hello");
};
$('#mainWindow').unclick(hello).click(hello);


-- Klaus



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to