Thanks Dave, I may submit a feature request, but I think I'm more curious if there are any plans in the pipeline to allow events to avoid having to use closures in order to maintain specific scope, or if it's safe to extend the event system locally (API-wise).
Thanks guys, Nate Cavanaugh Director of User Interface Engineering Liferay, Inc. Enterprise. Open Source. For life. On Nov 11, 2008, at 8:43 PM, Dave Methvin wrote: > >>> Seems like that could be implemented by just extending the event >>> object in jQuery.event.fix with some base object. > >> Is that something that can be done via a plugin, or is it either >> overwriting the fix method, or overloading it, or is it something >> that >> should be strictly handled by the core? > > That one-line change in the core jQuery.event.fix would allow you to > extend the event object by defining jQuery.eventBase. Of course, > there's only one eventBase, so if a lot of people started to use it in > plugins there could be conflicts. As long as plugins jQuery.extend-ed > eventBase and used good names they should be able to share it > effectively though. > >>> The order that the event is delivered to all the listeners isn't >>> well >>> defined, is it? > >> I always thought that the event order was FIFO. > > That may be an implementation detail; I couldn't find any place where > jQuery documents it. Both IE's attachEvent and the W3C > addEventListener say delivery order is not guaranteed, but jQuery > doesn't use either in most cases. If events are being dynamically > added and removed on DOM objects by multiple plugins, it would seem > practically impossible for any particular plugin to know where it > stood even if jQuery did guarantee FIFO. > > > > Nate Cavanaugh Director of User Interface Engineering Liferay, Inc. Enterprise. Open Source. For life. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
