incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [jira] [Updated] (CB-304) Cordova's require/define can't be used with Dojo's require/define
Date Fri, 09 Mar 2012 19:23:38 GMT
But what came first ;)
Sent on the TELUS Mobility network with BlackBerry

-----Original Message-----
From: Filip Maj <>
Date: Fri, 9 Mar 2012 11:21:55 
Subject: Re: [jira] [Updated] (CB-304) Cordova's require/define can't be
 used with Dojo's require/define

So if I understand correctly you are saying that doing:


Šis pretty redundant since "cordova" is already there, heh. Agreed.

On 3/9/12 10:10 AM, "Jesse MacFadyen" <> wrote:

>I don't think we should require require from native. My 2¥
>  Jesse
>Sent from my iPhone5
>On 2012-03-08, at 6:04 PM, "Filip Maj (Updated) (JIRA)" <>
>>     [ 
>>in.system.issuetabpanels:all-tabpanel ]
>> Filip Maj updated CB-304:
>> -------------------------
>>    Component/s: Android
>> I've made changes to cordova-js and [pushed up to a branch on my
>>56fc05be268f23359b44dfb9a6]. To go along with those, I also [pushed
>>needed changes to a branch on my fork of the android
>> Turns out we need to hang at least {{require}} off of the {{cordova}}
>>object. Otherwise, the native side can't get a reference to any of the
>>plugins' JavaScript (if we hide away {{require}}, then we can't call
>>{{require}} from native :) ).
>> Make sense? I think posting this to mailing list makes sense too...
>>> Cordova's require/define can't be used with Dojo's require/define
>>> -----------------------------------------------------------------
>>>                Key: CB-304
>>>                URL:
>>>            Project: Apache Callback
>>>         Issue Type: Bug
>>>         Components: Android, CordovaJS
>>>           Reporter: Patrick Mueller
>>>           Assignee: Filip Maj
>>> summarized from
>>> {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
>> For more information on JIRA, see:

View raw message