[OpenLayers-Commits] r11317 -
sandbox/sbrunner/openlayers/lib/OpenLayers/Control
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Feb 23 08:46:07 EST 2011
Author: fredj
Date: 2011-02-23 05:46:07 -0800 (Wed, 23 Feb 2011)
New Revision: 11317
Modified:
sandbox/sbrunner/openlayers/lib/OpenLayers/Control/DeviceOrientation.js
Log:
fix supported function
Modified: sandbox/sbrunner/openlayers/lib/OpenLayers/Control/DeviceOrientation.js
===================================================================
--- sandbox/sbrunner/openlayers/lib/OpenLayers/Control/DeviceOrientation.js 2011-02-23 13:41:58 UTC (rev 11316)
+++ sandbox/sbrunner/openlayers/lib/OpenLayers/Control/DeviceOrientation.js 2011-02-23 13:46:07 UTC (rev 11317)
@@ -19,7 +19,7 @@
last: null,
supported: function() {
- return window.DeviceOrientationEvent !== undefined;
+ return !!(window.DeviceOrientationEvent);
},
/**
More information about the Commits
mailing list