Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C0B3DED9 for ; Mon, 28 Jan 2013 19:13:29 +0000 (UTC) Received: (qmail 35592 invoked by uid 500); 28 Jan 2013 19:13:29 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 35563 invoked by uid 500); 28 Jan 2013 19:13:29 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 35551 invoked by uid 99); 28 Jan 2013 19:13:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 19:13:29 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=5.0 tests=FRT_ADOBE2,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.33 as permitted sender) Received: from [64.18.1.33] (HELO exprod6og114.obsmtp.com) (64.18.1.33) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 19:13:23 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob114.postini.com ([64.18.5.12]) with SMTP ID DSNKUQbNvtkHb5BiSEOMFhWxW8Lx9gDsSRSB@postini.com; Mon, 28 Jan 2013 11:13:03 PST Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r0SJA01v003988 for ; Mon, 28 Jan 2013 11:10:00 -0800 (PST) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r0SJD0Ae014359 for ; Mon, 28 Jan 2013 11:13:02 -0800 (PST) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nacas02.corp.adobe.com ([10.8.189.100]) with mapi; Mon, 28 Jan 2013 11:12:27 -0800 From: Filip Maj To: "dev@cordova.apache.org" Date: Mon, 28 Jan 2013 11:15:51 -0800 Subject: Re: best practice plugin authoring guidelines / window.plugins hate Thread-Topic: best practice plugin authoring guidelines / window.plugins hate Thread-Index: Ac39i2mdNpH1kcqRTDmgGKAnfk9DEQ== 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.2.5.121010 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hmm, how does this fit in with cordova.require ? On 1/28/13 11:11 AM, "Brian LeRoux" wrote: >I'm thinking we encourage: > >var insta =3D require('instagram') >insta.share( ... ) > > > >On Mon, Jan 28, 2013 at 12:51 PM, Jesse wrote: >> No reason to exist there, other than that is the way it used to be. >> I would rather just see : >> >> var myRef =3D Instagram.install(); >> myRef.share( ... ) >> >> I'll fork it. >> >> Also, I think we need to educate people on the use of >>objects&&prototypes, >> by example. >> We too have multiple places where we define a prototype object of which >> there will only evar be one ... off-topic sorry ... >> >> >> >> >> On Mon, Jan 28, 2013 at 10:40 AM, Filip Maj wrote: >> >>> Don't think so. Should be up to the user. That said Cordova should >>>provide >>> a registration mechanism to enable collision detection (I think Andrew >>> Grieve has something like this in his symbol mapping branch in >>>cordova-js). >>> >>> On 1/28/13 10:34 AM, "Brian LeRoux" wrote: >>> >>> >The community is starting to put plugins in their own repos (good). I >>> >noticed this one today: >>> > >>> >https://github.com/vstirbu/InstagramPlugin >>> > >>> >(Awesome.) >>> > >>> >But I can't stand window.plugins any longer. I think this might be a >>> >hangover from the existing plugin space but not totally sure---is >>> >there a good reason to have the plugins global "namespace" anymore? >>> >>> >> >> >> -- >> @purplecabbage >> risingj.com