HAS_CANVAS is false if ENABLE_CANVAS is false

This commit is contained in:
Éric Lemoine
2013-12-18 11:18:10 +01:00
parent 5520cc530d
commit 5bb6dbfef3
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ ol.BrowserFeature.DEVICE_PIXEL_RATIO = goog.global.devicePixelRatio || 1;
* @type {boolean}
* @todo stability experimental
*/
ol.BrowserFeature.HAS_CANVAS = (
ol.BrowserFeature.HAS_CANVAS = ol.ENABLE_CANVAS && (
/**
* @return {boolean} Canvas supported.
*/