Named exports from ol/dom

This commit is contained in:
Frederic Junod
2017-12-14 09:36:05 +01:00
parent fab77e8d37
commit f6627c4d4e
31 changed files with 118 additions and 121 deletions

View File

@@ -14,7 +14,7 @@ import _ol_ViewProperty_ from '../ViewProperty.js';
import _ol_control_Control_ from '../control/Control.js';
import _ol_coordinate_ from '../coordinate.js';
import _ol_css_ from '../css.js';
import _ol_dom_ from '../dom.js';
import {replaceNode} from '../dom.js';
import _ol_events_ from '../events.js';
import _ol_events_EventType_ from '../events/EventType.js';
import {containsExtent, getBottomLeft, getBottomRight, getTopLeft, getTopRight, scaleFromCenter} from '../extent.js';
@@ -492,9 +492,9 @@ _ol_control_OverviewMap_.prototype.handleClick_ = function(event) {
_ol_control_OverviewMap_.prototype.handleToggle_ = function() {
this.element.classList.toggle('ol-collapsed');
if (this.collapsed_) {
_ol_dom_.replaceNode(this.collapseLabel_, this.label_);
replaceNode(this.collapseLabel_, this.label_);
} else {
_ol_dom_.replaceNode(this.label_, this.collapseLabel_);
replaceNode(this.label_, this.collapseLabel_);
}
this.collapsed_ = !this.collapsed_;