It is very simple to accomplish as a plugin:

jQuery.fn.multibind = function( events ) {
  var $this = this;
  jQuery.each( events, function( name, fn ) {
    $this.bind( name, fn );
  } );
};

--
Brandon Aaron

On Thu, Aug 6, 2009 at 2:42 PM, Már<mar.orlygs...@gmail.com> wrote:
>
>> And what's so bad about just using the normal object notation instead?
>> $(target).bind({
>>     'example.start': new Function(),
>>     'example.stop': new Function()
>> });
>
> Is that possible?
> I can't find it mentioned in the documentation, and after a *brief*
> look at the 1.3.2 source I can't see it there.
>
> Sounds like a neat idea though - at least for a plugin.
>
> --
> Már
> >
>

--~--~---------~--~----~------------~-------~--~----~
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