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 D40C092E3 for ; Thu, 23 Feb 2012 17:33:01 +0000 (UTC) Received: (qmail 29536 invoked by uid 500); 23 Feb 2012 17:33:01 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 29478 invoked by uid 500); 23 Feb 2012 17:33:01 -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 29467 invoked by uid 99); 23 Feb 2012 17:33:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 17:33:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of purdrew@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 17:32:55 +0000 Received: by bkwq11 with SMTP id q11so1355818bkw.6 for ; Thu, 23 Feb 2012 09:32:34 -0800 (PST) Received-SPF: pass (google.com: domain of purdrew@gmail.com designates 10.204.150.69 as permitted sender) client-ip=10.204.150.69; Authentication-Results: mr.google.com; spf=pass (google.com: domain of purdrew@gmail.com designates 10.204.150.69 as permitted sender) smtp.mail=purdrew@gmail.com; dkim=pass header.i=purdrew@gmail.com Received: from mr.google.com ([10.204.150.69]) by 10.204.150.69 with SMTP id x5mr1171399bkv.53.1330018354259 (num_hops = 1); Thu, 23 Feb 2012 09:32:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=IrSx8ar/BQQlSPM4MjaOdK8xoFNdeNkoUgt2ic/dbP8=; b=cyjZbgV1UTa4Df57no2Vz6MAAbXGzRYrbbcgDDYvQ0jpMjHRG2aOkv3LqNbPcO6RRl 83v+HwpcDvMLS5mM6i5ZI5rATjY6ZbZEQQTuH5EFEh1auEjg7xOgFGvUuqUUgk0mMYpE FjAE1A796vt1980Y2tw3C9l5WvQsThIrvzb6M= Received: by 10.204.150.69 with SMTP id x5mr971351bkv.53.1330018354140; Thu, 23 Feb 2012 09:32:34 -0800 (PST) MIME-Version: 1.0 Sender: purdrew@gmail.com Received: by 10.204.174.68 with HTTP; Thu, 23 Feb 2012 09:32:14 -0800 (PST) In-Reply-To: References: From: Drew Walters Date: Thu, 23 Feb 2012 11:32:14 -0600 X-Google-Sender-Auth: Nng_KdUkcHA6ltrmDzNO4rbcNm0 Message-ID: Subject: Re: Unified JS and iOS To: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable There is still a Connection object defined in Connection.js which is made globally available during bootstrap (common.js objects). The end user access the network functionality through navigator.network.connection.type as defined by the spec. navigator.network.connection is globally mapped to the NetworkConnection module by bootstrap (common.js objects) as well. On Thu, Feb 23, 2012 at 10:20 AM, Becky Gibson wro= te: > So, I've started working through the unified JS changs for iOS. =A0 I'm n= ot > quite sure how to handle the many differences at startup. =A0 If I'm read= ing > the code right, there seems to be a new NetworkConnection object which > replaces the Connection object. =A0 Any reason for renaming this? =A0It s= eems > to me we should try to make a few api/object name changes as possible to > make upgrading easier for folks. =A0Also, since we are not going to get i= OS > updated for 1.5, we will have a discrepancy between platforms with some > using NetworkConnection and iOS at least still using Connection. > > Is there any requirement fo this NetworkConenction.getInfo() api? =A0I ca= n > certainly override that module for iOS to continue with the current iOS > implementation =A0or I can implement a getInfo() api. =A0The same issue o= ccurs > for the Device object - other platforms implement a getInfo() api to get > the info. =A0iOS calls out to JS to set the info during startup. > > -becky