cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject git commit: windows8. makes getHeading callback spec compliant
Date Wed, 14 May 2014 00:55:24 GMT
Repository: cordova-plugin-device-orientation
Updated Branches:
  refs/heads/master f01348ff4 -> 730f91734


windows8. makes getHeading callback spec compliant


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/commit/730f9173
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/tree/730f9173
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/diff/730f9173

Branch: refs/heads/master
Commit: 730f91734d12e877037c0356db6dc764c42bbff2
Parents: f01348f
Author: sgrebnov <sergei.grebnov@gmail.com>
Authored: Wed Dec 4 14:52:22 2013 +0400
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue May 13 17:54:29 2014 -0700

----------------------------------------------------------------------
 src/windows8/CompassProxy.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/blob/730f9173/src/windows8/CompassProxy.js
----------------------------------------------------------------------
diff --git a/src/windows8/CompassProxy.js b/src/windows8/CompassProxy.js
index 5b94d32..cac3f49 100644
--- a/src/windows8/CompassProxy.js
+++ b/src/windows8/CompassProxy.js
@@ -1,4 +1,4 @@
-/*
+/*
  *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -42,7 +42,7 @@ module.exports = {
 
             this.onReadingChanged = function (e) {
                 var reading = e.reading,
-                    heading = new CompassHeading(reading.headingMagneticNorth, reading.headingTrueNorth,
null, reading.timestamp);
+                    heading = new CompassHeading(reading.headingMagneticNorth, reading.headingTrueNorth,
null, reading.timestamp.getTime());
                 win(heading);
             };
             deviceCompass.addEventListener("readingchanged", this.onReadingChanged);


Mime
View raw message