Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 46AAB99C6 for ; Fri, 9 Mar 2012 02:32:19 +0000 (UTC) Received: (qmail 85074 invoked by uid 500); 9 Mar 2012 02:32:19 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 85023 invoked by uid 500); 9 Mar 2012 02:32:19 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 84985 invoked by uid 99); 9 Mar 2012 02:32:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 02:32:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 02:32:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3FB1A100DE for ; Fri, 9 Mar 2012 02:31:57 +0000 (UTC) Date: Fri, 9 Mar 2012 02:31:57 +0000 (UTC) From: "Patrick Mueller (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1370950682.42058.1331260317262.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <405495366.40407.1331240878509.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-304) Cordova's require/define can't be used with Dojo's require/define MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225795#comment-13225795 ] Patrick Mueller commented on CB-304: ------------------------------------ Having to hang {{require}} off of {{Cordova}} is believable for the reason you mention. I will note, again, that we need to make sure folks don't start using that {{require()}} instead of the {{require()}} they are passed (if they're in a module), as that won't resolve relative module ids correctly (when we implement that). So, I'd recommend we not actually call it {{require}} there. {{rootRequire}}, {{requireRoot}}, {{baseRequire}}, etc come to mind as alternatives. > 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: Android, CordovaJS > Reporter: Patrick Mueller > Assignee: Filip Maj > > 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