Hi list, I've been playing around with Cordova/PhoneGap and Emy this weekend, and realize it just can't work out of the box. Cordova has a specific "deviceready" event triggered onload, where both iUI & Emy are waiting for the unload event to initialize.
So i'm thiking of this small modification to the code: - move initializing code to an init() function - add a emy.ready parameter, default to false - call this init() function from the onload event & a new function emy.init() (which is different from the private init() function). init() checks is emy.ready is equal to false, turn it to true and load its init code just like before. The big difference here is that you can now load this initialization when you want, which means on "deviceready" too. Hacking this, i've successfully created the first ever emy-based native iOS app. You can grab the source .codeproj here: http://cl.ly/1Q192A3Q0d2U What do you think? Is this should be a core modification or simply a trick to give to debs looking to do so? I'm up to do this change in the main branch, It's just 2 more lines of code, a below 30 caracters change. Remi -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to iphonewebdev+unsubscr...@googlegroups.com. To post to this group, send email to iphonewebdev@googlegroups.com. Visit this group at http://groups.google.com/group/iphonewebdev?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.