Re: cordova.js changes
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 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 >
Re: cordova.js changes
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 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 >
cordova.js changes
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