Remove use of goog.dom.createElement

This commit is contained in:
Frederic Junod
2015-11-23 09:22:39 +01:00
parent 6897e3cc52
commit 1092f6b2a2
10 changed files with 19 additions and 23 deletions

View File

@@ -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
});