Remove ENABLE_CANVAS

This commit is contained in:
Tim Schaub
2017-12-12 17:18:41 -07:00
parent 0a12ca690f
commit 755619fa87
3 changed files with 11 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
/**
* @module ol/has
*/
import {ENABLE_CANVAS, HAS_WEBGL} from './index.js';
import {HAS_WEBGL} from './index.js';
var _ol_has_ = {};
@@ -51,13 +51,12 @@ _ol_has_.CANVAS_LINE_DASH = false;
/**
* True if both the library and browser support Canvas. Always `false`
* if `ol.ENABLE_CANVAS` is set to `false` at compile time.
* True if the and browsers support Canvas.
* @const
* @type {boolean}
* @api
*/
_ol_has_.CANVAS = ENABLE_CANVAS && (
_ol_has_.CANVAS = (
/**
* @return {boolean} Canvas supported.
*/