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 773869C44 for ; Wed, 22 Feb 2012 18:51:44 +0000 (UTC) Received: (qmail 77616 invoked by uid 500); 22 Feb 2012 18:51:44 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 77589 invoked by uid 500); 22 Feb 2012 18:51:44 -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 77581 invoked by uid 99); 22 Feb 2012 18:51:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 18:51:44 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fil@adobe.com designates 64.18.1.181 as permitted sender) Received: from [64.18.1.181] (HELO exprod6og101.obsmtp.com) (64.18.1.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 18:51:38 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob101.postini.com ([64.18.5.12]) with SMTP ID DSNKT0U5JAnC5SDwsDOkD1df9gzAeXdLwSc1@postini.com; Wed, 22 Feb 2012 10:51:18 PST Received: from inner-relay-4.eur.adobe.com (inner-relay-4b [10.128.4.237]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q1MIpG2d010860; Wed, 22 Feb 2012 10:51:16 -0800 (PST) Received: from nahub01.corp.adobe.com (nahub01.corp.adobe.com [10.8.189.97]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q1MIn8QQ017339; Wed, 22 Feb 2012 10:51:15 -0800 (PST) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nahub01.corp.adobe.com ([10.8.189.97]) with mapi; Wed, 22 Feb 2012 10:51:05 -0800 From: Filip Maj To: "callback-dev@incubator.apache.org" CC: "jrburke@gmail.com" Date: Wed, 22 Feb 2012 10:51:03 -0800 Subject: Re: using existing AMD implementations with cordova.js Thread-Topic: using existing AMD implementations with cordova.js Thread-Index: Aczxku4mYXYOQ7MLRgu4ufTvLUDEOw== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.14.0.111121 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Let's be very careful in recommending anything to our users as our bikeshed require implementation is no where close to what most people consider is "require.js". Also we should definitely document what is/isn't supported by our require. No async loading, for example. I'll create a JIRA ticket to document that stuff in the README - anywhere else that documentation should exist you guys think? On 12-02-22 10:46 AM, "Brian LeRoux" wrote: >> - our require.js adds a "define.remove()" function which no one else >> implements. I'm happy with that, but we should probably make the tests >> sensitive to it - only do the "remove" tests if "define.remove()" is >>present > >+1 > >> - issues w/almond and requirejs not throwing exceptions when modules are >> multiply defined or missing for require(). I've noted this issue with >> almond before, and there's an open bug at almond for it. Seems like >> requirejs is also not doing this. For this reason alone, I'd recommend >> folks not use almond or requirejs as difficult-to-diagnose failures will >> occur if, for some reason, a required module is absent. > > >So we *can* support alternate loaders but we'd recommend just using >https://github.com/callback/callback-js/blob/master/lib/require.js ??