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 E4791E58D for ; Fri, 15 Feb 2013 01:26:06 +0000 (UTC) Received: (qmail 84178 invoked by uid 500); 15 Feb 2013 01:26:06 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 84130 invoked by uid 500); 15 Feb 2013 01:26:06 -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 84116 invoked by uid 99); 15 Feb 2013 01:26:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 01:26:06 +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 209.85.128.180 as permitted sender) Received: from [209.85.128.180] (HELO mail-ve0-f180.google.com) (209.85.128.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 01:25:59 +0000 Received: by mail-ve0-f180.google.com with SMTP id jx10so2759892veb.11 for ; Thu, 14 Feb 2013 17:25:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=EqT5GQP7BbsT6W3Wx5t1xpDb8btMju8ni2hPVRCQLFA=; b=L64rxdOhV+cvY3B78dCEnTMAckEDLkvOi60kytxzFYmaiOKAUgREzSDz3dF5/7db6E CfftvK8sb/7jZ/2OPTr5wxLTGzb8CzjNpSR7P0os0jGxKkVtu3Z4IhYpgPpelxYvXQtm 37J0IldNbqnzuTJ5x6RiVYfL+n26XOh+dh1tmfUHPEBxiinRukiZZhCKJE22RyVoUV+T fWHALQZ5m0iVvj+Yr7M2StEU0z/Oos1zRqfuNimBzC/ht8Gi78n0Kniy89dKvCn5a95+ GYMdZk0QE8VGbK9IY6EAsipNW5CLctmRQcIEKDscbI5d2/NbRokcI7SV4qsFA2yKWr10 n4BA== MIME-Version: 1.0 X-Received: by 10.220.156.68 with SMTP id v4mr1063680vcw.10.1360891538880; Thu, 14 Feb 2013 17:25:38 -0800 (PST) Received: by 10.58.182.232 with HTTP; Thu, 14 Feb 2013 17:25:38 -0800 (PST) In-Reply-To: References: Date: Thu, 14 Feb 2013 17:25:38 -0800 Message-ID: Subject: Re: Small change to CompassHeading object From: Jesse To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=f46d043892e1c0b7c404d5b94027 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043892e1c0b7c404d5b94027 Content-Type: text/plain; charset=ISO-8859-1 No reliance on null in WP7+8 or Windows 8. On Thu, Feb 14, 2013 at 4:19 PM, Gord Tanner wrote: > I noticed a bug when working on Ripple in Compass Heading: > > https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commitdiff;h=6133a7e05bcd2ddc4a15591cf79cda965cbaf1ab > > When any of these values were 0 (which is a valid heading if you are facing > perfectly north) it would set the value of the property to null. > > I figured setting to undefined was just as good as setting to null so I got > rid of the fallback OR case. > > Does any platform rely on these values being null if they are not provided > in the constructor? > > I am going to also do a larger sweep of the javascript layer to see if we > have any of these other falsy bugs. > -- @purplecabbage risingj.com --f46d043892e1c0b7c404d5b94027--