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 97FE295E6 for ; Mon, 9 Apr 2012 18:20:15 +0000 (UTC) Received: (qmail 39522 invoked by uid 500); 9 Apr 2012 18:20:15 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 39497 invoked by uid 500); 9 Apr 2012 18:20:15 -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 39489 invoked by uid 99); 9 Apr 2012 18:20:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2012 18:20:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of purplecabbage@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2012 18:20:08 +0000 Received: by wgbdr12 with SMTP id dr12so3527047wgb.0 for ; Mon, 09 Apr 2012 11:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kWR65Y10lfXobS0At318q9ztb+QY5oURqDkCJxvMo/Q=; b=bodYnGmK6s18Pkd92pkFPRPZa5jq4q/PjUVpaEqX51AYGzenNvu2LS2pIGAKpWMZy/ f854kzIZrjWkqsQv8pqO4/K7xA+VQW1MhACiErgOnin2v2Mtbw2c8FwAI3f+sXNHkxny VdtzHgU+l4XcouPo+RLWVdomzSv+PA0n1calD+r+EjXTv/nWe5QT44Lo5TEIyV5XzWAD kuO8v8tI0dbRWJzSYeSSZlBfrFR4o504bBTNhkmb5sgx1n8gcfLuYvJCnRGMzHnSEfLm Uh+r5hm3nU5MEgDyvYLjrUEtxKEKhBFfOkeWTBg4FfW+g01kq17xQ9rn+3bvMqDpzFFa sdHA== MIME-Version: 1.0 Received: by 10.180.96.228 with SMTP id dv4mr52433wib.14.1333995586469; Mon, 09 Apr 2012 11:19:46 -0700 (PDT) Received: by 10.216.49.143 with HTTP; Mon, 9 Apr 2012 11:19:46 -0700 (PDT) In-Reply-To: References: Date: Mon, 9 Apr 2012 11:19:46 -0700 Message-ID: Subject: Re: Advice for upgrading iOS plugins for 1.6? From: Jesse To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d0444047a103fd504bd430dc7 --f46d0444047a103fd504bd430dc7 Content-Type: text/plain; charset=ISO-8859-1 My 'advice' would be, inside the closure that the plugin code 'should' be wrapped in, the developer of the plugin writes something like : var myCordovaRef = window.PhoneGap || window.Cordova || window.cordova; No need to pollute the window with all the aliases it has ever had. The dev just needs to find it ... On Mon, Apr 9, 2012 at 11:14 AM, Shazron wrote: > That went away in 1.6.0 right? What would be the shim, would you know? > Do you think that is only used by core or third party plugins as well > > On Mon, Apr 9, 2012 at 11:10 AM, Becky Gibson > wrote: > > We might want to consider something similar for Cordova.hasResource() > > > > > > On Mon, Apr 9, 2012 at 1:52 PM, Shazron wrote: > > > >> What about advice to add a shim like we already have for the PhoneGap > >> object > >> > >> if (!window.Cordova) { > >> window.Cordova = cordova; > >> } > >> > >> I should add this in the Cordova Plugin Upgrade Guide > >> > >> > >> On Mon, Apr 9, 2012 at 7:07 AM, Becky Gibson > >> wrote: > >> > We created a new repository for iOS plugins that that have been > updated > >> to > >> > Cordova (https://github.com/phonegap/phonegap-plugins/tree/master/iOS > ). > >> > Now that 1.6 has changed the cordova object from Cordova (capital C) > to > >> > cordova (little c) do we have any advice for people updating / > submitting > >> > plugins to distinguish between 1.5 and 1.6? > >> > --f46d0444047a103fd504bd430dc7--