On 02/22/2013 02:35 AM, Julien Wajsberg wrote: > Le 22/02/2013 09:47, Tsuneyuki Ito a écrit : >> Hello, >> >> I'd like to add a new Event on Gecko to notify the Gaia Apps through >> nsIDOMEventListener, such "oninstall" or "onuninstall" on mozApps.mgmt. >> Could you give us any hints for following items to implement? > > Actually, the oninstall/onuninstall events on mgmt are not using the > usual event listener mechanism. This is planned to change though. > > I recently did an implementation of "addEventListener", "dispatchEvent" > and "removeEventListener" in [1], this worked well with eg jQuery, and > tried to follow the spec [2], but I don't know if that is enough for our > JS Modules.
It was decided to *not* reimplement EventTarget in chrome side JS because it's not really possible to do it properly. All the content-side JS shims are not really spec compliant either for the same reasons. See the juicy bits in https://bugzilla.mozilla.org/show_bug.cgi?id=731746 Fabrice -- Fabrice Desré b2g team Mozilla Corporation _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
