I thought events were "event.namespace" you're suggesting the ability to 
bind multiple namespaces to one event? Don't you mean multiple events to 
one namespace?

And what's so bad about just using the normal object notation instead?
$(target).bind({
    'example.start': new Function(),
    'example.stop': new Function()
});

~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]

ludovic wrote:
> Hi all,
> I propose to add the following new feature in events binding :
>
> var o = {
>    start : new Function(),
>    stop : new Function()
> }
>
> // Will be the same as
> // $(target).bind( 'example.start', o.start );
> // $(target).bind( 'example.stop', o.stop );
> $(target).bind( 'example', o );
>
> $(target).triggerHandler( 'example.start' ); // Will call start
> function
>
> It is very easy to implement, and would simplify interface. After
> that, I would be great to normalize all components with the
> following :
>
> $(target).myComponent( {
>     events : {
>        start : new Function(),
>        stop : new Function()
>     },
>     myOtherParam : 'value'
> }
>
> As jquery supports namespaced events, it should support it fully.
>
> Best regards,
>
> >
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to