From 8f8068b88c2f267ba77d0f7231c2714d83880822 Mon Sep 17 00:00:00 2001 From: nicholas Date: Fri, 25 Mar 2016 17:19:02 +1300 Subject: [PATCH] Removed goog.dom.classlist --- src/ol/control/attributioncontrol.js | 4 ++-- src/ol/control/rotatecontrol.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ol/control/attributioncontrol.js b/src/ol/control/attributioncontrol.js index 4ec528b2b3..d78cb9fcbc 100644 --- a/src/ol/control/attributioncontrol.js +++ b/src/ol/control/attributioncontrol.js @@ -275,9 +275,9 @@ ol.control.Attribution.prototype.updateElement_ = function(frameState) { } if (renderVisible && ol.object.isEmpty(this.attributionElementRenderedVisible_)) { - goog.dom.classlist.add(this.element, 'ol-logo-only'); + this.element.classList.add('ol-logo-only'); } else { - goog.dom.classlist.remove(this.element, 'ol-logo-only'); + this.element.classList.remove('ol-logo-only'); } this.insertLogos_(frameState); diff --git a/src/ol/control/rotatecontrol.js b/src/ol/control/rotatecontrol.js index e71f3c31c8..08ec56a6d3 100644 --- a/src/ol/control/rotatecontrol.js +++ b/src/ol/control/rotatecontrol.js @@ -41,7 +41,7 @@ ol.control.Rotate = function(opt_options) { 'ol-compass', label); } else { this.label_ = label; - goog.dom.classlist.add(this.label_, 'ol-compass'); + this.label_.classList.add(this.label_, 'ol-compass'); } var tipLabel = options.tipLabel ? options.tipLabel : 'Reset rotation'; @@ -88,7 +88,7 @@ ol.control.Rotate = function(opt_options) { this.rotation_ = undefined; if (this.autoHide_) { - goog.dom.classlist.add(this.element, ol.css.CLASS_HIDDEN); + this.element.classList.add(ol.css.CLASS_HIDDEN); } };