Remove use of goog.dom.createElement
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
goog.provide('ol.has');
|
||||
|
||||
goog.require('goog.dom');
|
||||
goog.require('ol');
|
||||
goog.require('ol.dom');
|
||||
goog.require('ol.webgl');
|
||||
@@ -124,7 +123,7 @@ ol.has.WEBGL;
|
||||
if ('WebGLRenderingContext' in goog.global) {
|
||||
try {
|
||||
var canvas = /** @type {HTMLCanvasElement} */
|
||||
(goog.dom.createElement('CANVAS'));
|
||||
(document.createElement('CANVAS'));
|
||||
var gl = ol.webgl.getContext(canvas, {
|
||||
failIfMajorPerformanceCaveat: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user