Improve type checking in ol.canvas.SUPPORTED
This commit is contained in:
@@ -9,7 +9,11 @@ goog.require('goog.dom.TagName');
|
||||
* @const
|
||||
* @type {boolean}
|
||||
*/
|
||||
ol.canvas.SUPPORTED = (function() {
|
||||
ol.canvas.SUPPORTED = (
|
||||
/**
|
||||
* @return {boolean} Canvas supported.
|
||||
*/
|
||||
function() {
|
||||
if (!('HTMLCanvasElement' in goog.global)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user