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
+2 -3
View File
@@ -1,7 +1,6 @@
goog.provide('ol.style.Circle');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('ol');
goog.require('ol.color');
goog.require('ol.has');
@@ -272,7 +271,7 @@ ol.style.Circle.prototype.render_ = function(atlasManager) {
if (atlasManager === undefined) {
// no atlas manager is used, create a new canvas
this.canvas_ = /** @type {HTMLCanvasElement} */
(goog.dom.createElement('CANVAS'));
(document.createElement('CANVAS'));
this.canvas_.height = size;
this.canvas_.width = size;
@@ -373,7 +372,7 @@ ol.style.Circle.prototype.createHitDetectionCanvas_ = function(renderOptions) {
// if no fill style is set, create an extra hit-detection image with a
// default fill style
this.hitDetectionCanvas_ = /** @type {HTMLCanvasElement} */
(goog.dom.createElement('CANVAS'));
(document.createElement('CANVAS'));
var canvas = this.hitDetectionCanvas_;
canvas.height = renderOptions.size;