event.special namespacing bug

event.special namespacing bug

Perhaps I'm missing something, but an jQuery.event.special add method returns a function, namespacing no longer works.


This image represents what "should" work, but notice that namespacing seems to have no effect when triggering or unbinding: http://benalman.com/grab/150c27.png


If add doesn't return a function, namespacing seems to work.. but of course the event object is no longer being augmented: http://benalman.com/grab/ac7431.png


I've actually been working on an article explaining a bit about how Special Events work. This screenshot may help explain what the expected behavior of the setup, teardown, add and remove methods should be (please correct me if I've got something wrong!)

Special Events


Can anyone confirm this? i've created a ticket http://dev.jquery.com/ticket/5834 in the hopes that this can be resolved soon!


- Ben


http://benalman.com/ - jQuery BBQ, doTimeout, hashchange event, Message Queuing, postMessage, replaceText, Star Wipe, Untils, unwrap, urlInternal.. and more!