Remove usage of goog.dom.TagName enum

This commit is contained in:
Marc Jansen
2015-10-12 20:42:34 +02:00
parent e111e30f33
commit 9386415633
27 changed files with 58 additions and 85 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ goog.provide('ol.style.AtlasManager');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.dom.TagName');
goog.require('goog.functions');
goog.require('goog.object');
goog.require('ol');
@@ -298,7 +297,7 @@ ol.style.Atlas = function(size, space) {
* @type {HTMLCanvasElement}
*/
this.canvas_ = /** @type {HTMLCanvasElement} */
(goog.dom.createElement(goog.dom.TagName.CANVAS));
(goog.dom.createElement('CANVAS'));
this.canvas_.width = size;
this.canvas_.height = size;
+2 -3
View File
@@ -2,7 +2,6 @@ goog.provide('ol.style.Circle');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.dom.TagName');
goog.require('ol');
goog.require('ol.color');
goog.require('ol.has');
@@ -273,7 +272,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(goog.dom.TagName.CANVAS));
(goog.dom.createElement('CANVAS'));
this.canvas_.height = size;
this.canvas_.width = size;
@@ -374,7 +373,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(goog.dom.TagName.CANVAS));
(goog.dom.createElement('CANVAS'));
var canvas = this.hitDetectionCanvas_;
canvas.height = renderOptions.size;
+2 -3
View File
@@ -2,7 +2,6 @@ goog.provide('ol.style.RegularShape');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.dom.TagName');
goog.require('ol');
goog.require('ol.color');
goog.require('ol.has');
@@ -353,7 +352,7 @@ ol.style.RegularShape.prototype.render_ = function(atlasManager) {
if (atlasManager === undefined) {
// no atlas manager is used, create a new canvas
this.canvas_ = /** @type {HTMLCanvasElement} */
(goog.dom.createElement(goog.dom.TagName.CANVAS));
(goog.dom.createElement('CANVAS'));
this.canvas_.height = size;
this.canvas_.width = size;
@@ -465,7 +464,7 @@ ol.style.RegularShape.prototype.createHitDetectionCanvas_ =
// if no fill style is set, create an extra hit-detection image with a
// default fill style
this.hitDetectionCanvas_ = /** @type {HTMLCanvasElement} */
(goog.dom.createElement(goog.dom.TagName.CANVAS));
(goog.dom.createElement('CANVAS'));
var canvas = this.hitDetectionCanvas_;
canvas.height = renderOptions.size;