You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mm...@apache.org on 2013/02/25 14:40:50 UTC
[16/50] js commit: Handle case where these values can be zero,
and would be set to null
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/multipart_plugin_result
Commit: 6133a7e05bcd2ddc4a15591cf79cda965cbaf1ab
Parents: 4f39f4f
Author: Gord Tanner <gt...@gmail.com>
Authored: Thu Feb 14 15:08:52 2013 -0500
Committer: Gord Tanner <gt...@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();
};