incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Mueller (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-499) Cordova 1.6 breaks with RequireJS
Date Wed, 18 Apr 2012 12:59:46 GMT

    [ https://issues.apache.org/jira/browse/CB-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256510#comment-13256510
] 

Patrick Mueller commented on CB-499:
------------------------------------

I've been working on a similar issue w/Dojo and Cordova.  

In the Dojo case, we could only get Dojo and Cordova to play nice if the <script src=>
for the two was in a certain order - I can't remember what the order was off the top of my
head.  

Additionally, we had to set some Dojo config properties just so: thinking it was async: false,
parseOnLoad: true that actually worked for us.  

I assume RequireJS has similar configuration options (prolly not a parseOnLoad equivalent,
but maybe an "asyncLoad" option/property?), and you can certainly play with switching the
order of the <script> elements around.

You might want to hit up a RequireJS mailing list; someone there may have more experience
with this (but: I doubt it).
                
> 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

        

Mime
View raw message