nativeDroid2
nativeDroid2 copied to clipboard
Fix: Should require jQuery Mobile
If jQuery Mobile is not specified as a dependency and RequireJS loads scripts via HTTP asynchronously, NativeDroid2 script could start running before jQuery Mobile is ready.
This could result in:
Uncaught TypeError: $.widget is not a function
at nativedroid2.js:38
In our case an optimized RequireJS build worked, but an unoptimized build did not.
Also fixed the comments.