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