Reputation: 425
I tried to load cordova.js or phonegap.js (with phonegapbuild) as an AMD module in the main.js in require.config like this:
cordova: 'cordova.js'
Should I include it in the shim ?
How can do you test it then? Can you use navigator.getPicture ?
Upvotes: 0
Views: 2904
Reputation: 206
I had a problem when trying to load cordova using requireJS.
It seems it won't work with cordova 2.2.0 (and maybe other versions).
You can read my post about this issue.
Hope this helps!
Upvotes: 1