nativeDroid2 icon indicating copy to clipboard operation
nativeDroid2 copied to clipboard

Fix: Should require jQuery Mobile

Open taneltm opened this issue 9 years ago • 0 comments

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.

taneltm avatar Jul 13 '16 12:07 taneltm