cordova.js changes

2013-02-19 Thread Leutwyler, Markus
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 =

Re: cordova.js changes

2013-02-19 Thread Gord Tanner
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

Re: cordova.js changes

2013-02-19 Thread Brian LeRoux
Sounds like pause, resume events? (Which we should look to deprecate for page visibility api but thats another story!) On Tue, Feb 19, 2013 at 7:45 AM, Leutwyler, Markus markus.leutwy...@hp.comwrote: What's the process for adding stuff to cordova.js or how can i make such changes platform