Don't pass an object to goog.dom.createDom for the class name
If the second argument to goog.dom.createDom is a string, then this is the className of the new element.
This commit is contained in:
@@ -66,17 +66,15 @@ ol.control.ScaleLine = function(opt_options) {
|
||||
* @private
|
||||
* @type {Element}
|
||||
*/
|
||||
this.innerElement_ = goog.dom.createDom(goog.dom.TagName.DIV, {
|
||||
'class': className + '-inner'
|
||||
});
|
||||
this.innerElement_ = goog.dom.createDom(goog.dom.TagName.DIV,
|
||||
className + '-inner');
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Element}
|
||||
*/
|
||||
this.element_ = goog.dom.createDom(goog.dom.TagName.DIV, {
|
||||
'class': className + ' ' + ol.css.CLASS_UNSELECTABLE
|
||||
}, this.innerElement_);
|
||||
this.element_ = goog.dom.createDom(goog.dom.TagName.DIV,
|
||||
className + ' ' + ol.css.CLASS_UNSELECTABLE, this.innerElement_);
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user