Removed goog.dom.classlist
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user