From fe69c0e35488e2a05b9516a2d07ffa8f51a1fa47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 24 Aug 2015 16:05:43 +0200 Subject: [PATCH] Better docs for ol.ENABLE_[WEBGL|CANVAS|DOM] --- src/ol/has.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ol/has.js b/src/ol/has.js index b68ea55867..8be8bd5950 100644 --- a/src/ol/has.js +++ b/src/ol/has.js @@ -25,7 +25,8 @@ ol.has.CANVAS_LINE_DASH = false; /** - * True if browser supports Canvas. + * True if both the library and browser support Canvas. Always `false` + * if `ol.ENABLE_CANVAS` is set to `false` at compile time. * @const * @type {boolean} * @api stable @@ -64,7 +65,7 @@ ol.has.DEVICE_ORIENTATION = 'DeviceOrientationEvent' in goog.global; /** - * True if browser supports DOM. + * True if `ol.ENABLE_DOM` is set to `true` at compile time. * @const * @type {boolean} */ @@ -106,7 +107,8 @@ ol.has.MSPOINTER = !!(goog.global.navigator.msPointerEnabled); /** - * True if browser supports WebGL. + * True if both OpenLayers and browser support WebGL. Always `false` + * if `ol.ENABLE_WEBGL` is set to `false` at compile time. * @const * @type {boolean} * @api stable