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:
@@ -46,9 +46,7 @@ ol.control.MousePosition = function(opt_options) {
|
||||
var className = goog.isDef(options.className) ?
|
||||
options.className : 'ol-mouse-position';
|
||||
|
||||
var element = goog.dom.createDom(goog.dom.TagName.DIV, {
|
||||
'class': className
|
||||
});
|
||||
var element = goog.dom.createDom(goog.dom.TagName.DIV, className);
|
||||
|
||||
goog.base(this, {
|
||||
element: element,
|
||||
|
||||
Reference in New Issue
Block a user