From 43561c302eb6709853025b94015110baac3d73b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Sat, 28 Sep 2013 22:44:35 +0200 Subject: [PATCH 1/3] Fix export for ol.Geolocation.SUPPORTED --- src/ol/geolocation.exports | 1 + src/ol/geolocation.js | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ol/geolocation.exports b/src/ol/geolocation.exports index 18d54d9805..3040f335d7 100644 --- a/src/ol/geolocation.exports +++ b/src/ol/geolocation.exports @@ -1 +1,2 @@ @exportClass ol.Geolocation ol.GeolocationOptions +@exportSymbol ol.Geolocation.SUPPORTED ol.Geolocation.SUPPORTED diff --git a/src/ol/geolocation.js b/src/ol/geolocation.js index 5b7f55f66d..8b04ab8030 100644 --- a/src/ol/geolocation.js +++ b/src/ol/geolocation.js @@ -142,10 +142,6 @@ ol.Geolocation.prototype.handleTrackingChanged_ = function() { * @type {boolean} */ ol.Geolocation.SUPPORTED = 'geolocation' in goog.global.navigator; -goog.exportProperty( - ol.Geolocation, - 'SUPPORTED', - ol.Geolocation.SUPPORTED); /** From 925b5d285af15f658d441648decbe35a1828ce25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Sat, 28 Sep 2013 22:44:59 +0200 Subject: [PATCH 2/3] Fix export for ol.DeviceOrientation.SUPPORTED --- src/ol/deviceorientation.exports | 1 + src/ol/deviceorientation.js | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ol/deviceorientation.exports b/src/ol/deviceorientation.exports index 6988135399..31910aa9b1 100644 --- a/src/ol/deviceorientation.exports +++ b/src/ol/deviceorientation.exports @@ -1 +1,2 @@ @exportClass ol.DeviceOrientation ol.DeviceOrientationOptions +@exportSymbol ol.DeviceOrientation.SUPPORTED ol.DeviceOrientation.SUPPORTED diff --git a/src/ol/deviceorientation.js b/src/ol/deviceorientation.js index 0a3392bb00..c4a0a1f35c 100644 --- a/src/ol/deviceorientation.js +++ b/src/ol/deviceorientation.js @@ -106,10 +106,6 @@ ol.DeviceOrientation.prototype.disposeInternal = function() { * @type {boolean} */ ol.DeviceOrientation.SUPPORTED = 'DeviceOrientationEvent' in goog.global; -goog.exportProperty( - ol.DeviceOrientation, - 'SUPPORTED', - ol.DeviceOrientation.SUPPORTED); /** From 5c5fcb7e06670ca7ab0041a320f70162277f77ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Sat, 28 Sep 2013 22:47:25 +0200 Subject: [PATCH 3/3] Use @exportSymbol for exporting ol.webgl.SUPPORTED For consistency with the way we export ol.DeviceOrientation.SUPPORTED and ol.Geolocation.SUPPORTED. --- src/ol/webgl/webgl.exports | 1 + src/ol/webgl/webgl.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 src/ol/webgl/webgl.exports diff --git a/src/ol/webgl/webgl.exports b/src/ol/webgl/webgl.exports new file mode 100644 index 0000000000..582ed7670e --- /dev/null +++ b/src/ol/webgl/webgl.exports @@ -0,0 +1 @@ +@exportSymbol ol.webgl.SUPPORTED ol.webgl.SUPPORTED diff --git a/src/ol/webgl/webgl.js b/src/ol/webgl/webgl.js index 3468b9f973..96801d426c 100644 --- a/src/ol/webgl/webgl.js +++ b/src/ol/webgl/webgl.js @@ -63,4 +63,3 @@ ol.webgl.SUPPORTED = (function() { return false; } })(); -goog.exportSymbol('ol.webgl.SUPPORTED', ol.webgl.SUPPORTED);