cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtan...@apache.org
Subject js commit: Handle case where these values can be zero, and would be set to null
Date Thu, 14 Feb 2013 20:09:28 GMT
Updated Branches:
  refs/heads/master 4f39f4f22 -> 6133a7e05


Handle case where these values can be zero, and would be set to null


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/6133a7e0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/6133a7e0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/6133a7e0

Branch: refs/heads/master
Commit: 6133a7e05bcd2ddc4a15591cf79cda965cbaf1ab
Parents: 4f39f4f
Author: Gord Tanner <gtanner@gmail.com>
Authored: Thu Feb 14 15:08:52 2013 -0500
Committer: Gord Tanner <gtanner@gmail.com>
Committed: Thu Feb 14 15:08:52 2013 -0500

----------------------------------------------------------------------
 lib/common/plugin/CompassHeading.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/6133a7e0/lib/common/plugin/CompassHeading.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/CompassHeading.js b/lib/common/plugin/CompassHeading.js
index 09d0fae..70343ee 100644
--- a/lib/common/plugin/CompassHeading.js
+++ b/lib/common/plugin/CompassHeading.js
@@ -20,9 +20,9 @@
 */
 
 var CompassHeading = function(magneticHeading, trueHeading, headingAccuracy, timestamp) {
-  this.magneticHeading = magneticHeading || null;
-  this.trueHeading = trueHeading || null;
-  this.headingAccuracy = headingAccuracy || null;
+  this.magneticHeading = magneticHeading;
+  this.trueHeading = trueHeading;
+  this.headingAccuracy = headingAccuracy;
   this.timestamp = timestamp || new Date().getTime();
 };
 


Mime
View raw message