cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gord Tanner <gtan...@gmail.com>
Subject Re: cordova.js changes
Date Tue, 19 Feb 2013 16:15:17 GMT
Probably your best bet would be to add it to the initialize function for
your platform (example:
https://github.com/gtanner/cordova-js/blob/master/lib/blackberry/plugin/qnx/platform.js#L26-42
)

If you need it to be sooner you have the option of the bootstrap file which
gets tacked to the end of the cordova.js file (Example:
https://github.com/gtanner/cordova-js/blob/master/lib/scripts/bootstrap-blackberry.js
)


On Tue, Feb 19, 2013 at 10:45 AM, Leutwyler, Markus <markus.leutwyler@hp.com
> wrote:

> What's the process for adding stuff to cordova.js or how can i make such
> changes platform specific?
>
> Let's say I want to add a new (in my case probably webOS specific)
> document event for show/hide/relaunch to Cordova:
>
> Cordova.js, line 240
> channel.onShow = cordova.addDocumentEventHandler('show');
>
>
>
>
> Markus
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message