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.

[1]
https://github.com/julienw/install/blob/remove-jquery/www/js/lib/install.js
(end of file)

[2] http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-registration
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to