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

Patrick Mueller commented on CB-304:
------------------------------------

Seems to me you should be able to hack around this.  Can you just add a literal 
script between the Cordova and Dojo code which "removes" the 
{{require()/define()}}?  Cordova's {{require()/define()}} should just be used 
in the big concatenated {{cordova-x.y.z.js}} file - for now. eg,

{noformat}
<script src="cordova-x.y.z.js"></script>
<script>require=null; define=null;</script>  // <-- add this line
<script src="dojo.js"></script>
{noformat}



                
> Cordova's require/define can't be used with Dojo's require/define
> -----------------------------------------------------------------
>
>                 Key: CB-304
>                 URL: https://issues.apache.org/jira/browse/CB-304
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: CordovaJS
>            Reporter: Patrick Mueller
>
> summarized from 
> https://groups.google.com/d/topic/phonegap/D1cm3kQzKJ0/discussion
> {quote}
> I was targeting Android and used Phonegap 1.2.0 in combination with Dojo 1.7 
> which worked fine. Now I switched to Phonegap 1.5.0 and found a severe 
> problem. The new module system in Phonegap 1.5.0 uses global functions 
> "define" and "require". Dojo 1.7 does the same for its own module system. 
> Hence, whatever is loaded first, breaks the other one. 
> Could the Phonegap developers consider to modify the module system in a way 
> that it is compatible with Dojo's? 
> {quote}

--
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

        

Reply via email to