Fabien Meghazi schrieb:
>> $('#foo').mouseout(function(e) {
>>    if (this == e.target) {
>>      // do your magic
>>    }
>> }
>>
>> In essence, check that the item being moused out of is in fact the
>> item that the handler is attached to.
>>     
>
> Wow ! Thanks a lot ! It is indeed what I'm searching for.
> By any chance, is it possible to delete the event ?
> I could use .onemouseout() but I wonder if there's a way to do it
> manually (not that I need to do it manually but it's just to add
> something more in my knowledge ;-)
>
> So instead of doing unbind() that would erase other events, how could I do :
> $('#foo').mouseout(function(e) {
>    if (this == e.target) {
>      // code here
>      // and here, unbind the element know as variable "e" in this scope
>    }
> }
>   
In 1.1 you can do this:

$('#foo').mouseout(function(e) {
        if(this == e.target) {
                $(this).unbind(e);
        }
});

You have to be patient for a few days ;)

-- 
Jörn Zaefferer

http://bassistance.de


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

Reply via email to