Thanks for clarification and Yes, I definitively know namespace, I kinda use
them every day ... anyway, my reply was because what you wrote is not what
you should write.
So, to be more clear, have you tried the code I have already posted?
$P
.unbind("mouseenter."+ namespace, addHover )
.unbind("mouseleave."+ namespace, removeHover )
;
In your email I assume you didn't, cause you never send the callback to
unbind, and if you read jQuery source, you'll realize that could help.
Regards
On Mon, Oct 5, 2009 at 7:29 PM, Kevin Dalman <[email protected]> wrote:
>
> RE:
>
> > $P
> > .unbind("mouseenter."+ namespace, addHover )
> > .unbind("mouseleave."+ namespace, removeHover )
> > ;
> >
> > ???
>
> Is this supposed to be a question? I assumed the sample was clear
> since I also included the 'bind' statement...
>
> $P
> .bind("mouseenter."+ namespace, addHover )
> .bind("mouseleave."+ namespace, removeHover )
> ;
>
> But for extra clarity...
>
> * $P is a var representing a jQuery object
> * namespace is a string var, like "layout_99999"
> * addHover and removeHover are custom functions
>
> If you aren't familiar with namespaced events, see...
> http://docs.jquery.com/Release:jQuery_1.2.3
> ...and scroll down to: .unbind(".namespace")
>
> Also see...
> http://docs.jquery.com/Release:jQuery_1.2/Events
> As noted here, namespacing is *recommended* for plug-ins.
>
> /Kevin
>
>
> On Oct 2, 11:41 am, Andrea Giammarchi <[email protected]>
> wrote:
> > $P
> > .unbind("mouseenter."+ namespace, addHover )
> > .unbind("mouseleave."+ namespace, removeHover )
> > ;
> >
> > ???
> >
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---