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