Removed goog.dom.classlist

This commit is contained in:
nicholas
2016-03-25 17:19:02 +13:00
parent cf9e24feb1
commit 8f8068b88c
2 changed files with 4 additions and 4 deletions

View File

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

View File

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