Sorry for not being clear enough. That is because in my example the special add handler is supposed to modify click event handlers only. A special event add handler is something like this: jQuery.event.special.click = { add: function() { return function() { ... }; } };
On Jan 9, 3:48 pm, John Arrowwood <jarro...@gmail.com> wrote: > Your question is not clear. When you do .bind('event1 event2',fn) you add > an event handler for both events. This is to be expected. So why would you > think that the code below would not modify the 'anothertype' event? > > On Fri, Jan 8, 2010 at 10:58 PM, helianthus > <project.heliant...@gmail.com>wrote: > > > > > > > For example, > > if I had created a special add handler for click event, > > when I do something like jQuery.bind('click anothertype', function() > > {...}), > > the handler of anothertype is also modified. > > > If the above is not clear enough I can write a test case. > > > -- > > You received this message because you are subscribed to the Google Groups > > "jQuery Development" group. > > To post to this group, send email to jquery-...@googlegroups.com. > > To unsubscribe from this group, send email to > > jquery-dev+unsubscr...@googlegroups.com<jquery-dev%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/jquery-dev?hl=en. > > -- > John Arrowwood > John (at) Irie (dash) Inc (dot) com > John (at) Arrowwood Photography (dot) com > John (at) Hanlons Razor (dot) com > --http://www.irie-inc.com/http://arrowwood.blogspot.com/- Hide quoted text - > > - Show quoted text -
-- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@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.