[
https://issues.apache.org/jira/browse/CB-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256448#comment-13256448
]
Dewang Shah commented on CB-499:
--------------------------------
@Filip - I doubt it is because of Cordova's require and define methods. That
was a problem with 1.5.0 which I patched in my JS file using the fix that is
now part of 1.6.0. I then had the code working with 1.5.0.
Something else broke it in 1.6.0 but in my case I was using RequireJS to also
load Cordova.
I fixed my project to load Cordova as a top level script and that was fine on
Android but did not work on iOS. The deviceready event never fired on iOS even
with Cordova being a top level script. I have now had to abandon using
RequireJS completely since I cannot abandon Cordova :-).
> Cordova 1.6 breaks with RequireJS
> ---------------------------------
>
> Key: CB-499
> URL: https://issues.apache.org/jira/browse/CB-499
> Project: Apache Callback
> Issue Type: Bug
> Components: CordovaJS, iOS
> Affects Versions: 1.6.0, 1.6.1
> Environment: iOS (iPod Touch), Cordova 1.6.0 or 1.6.1, RequireJS 1.0.7
> Reporter: Dewang Shah
> Assignee: Filip Maj
> Fix For: 1.7.0
>
> Attachments: www-michal.tar.gz
>
>
> Cordova 1.6 breaks compatibility with RequireJS. This uesd to work in 1.5 but
> now stops all other Require modules from loading. The deviceready event fires
> within seconds (much sooner that 1.5) and then all modules fail to load.
> Making Cordova the last module to load does not make any difference.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira