Hello,
I'm trying to get RequireJS (v1.0.7) to work with PhoneGap
(v1.5.0), but am running into a predicament using Android. For some
reason, the Android version of cordova.js (cordova-1.5.0.js)
implements it's own require and define methods. This makes it unable
to be used along side with RequireJS and probably other AMD loaders.
I've tried multiple attempts at trying to get them to work together
(inluding renaming cordova's "require" and "define" methods) with no
such luck. Is it possible to get a patch for the Android version to
fix this? I'm not asking for phonegap to be AMD compatible, just not
over-write the standard "require" and "define" methods. I've had no
problems with the IOS version and have yet to try the windows version.
Original RequireJS google group post:
http://groups.google.com/group/requirejs/browse_thread/thread/282a85c5eeed613f/e37063b882a9ff15?lnk=gst&q=phonegap#e37063b882a9ff15
TLDR: PhoneGap has implemented non standard "require" and "define"
methods in the Android version of PhoneGap ("cordova-1.5.0.js") making
it unable to be used with AMD loaders such as RequireJS.