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

@@ -4,7 +4,7 @@
import {inherits, nullFunction} from '../index.js';
import _ol_MapEventType_ from '../MapEventType.js';
import _ol_Object_ from '../Object.js';
import _ol_dom_ from '../dom.js';
import {removeNode} from '../dom.js';
import _ol_events_ from '../events.js';
/**
@@ -82,7 +82,7 @@ inherits(_ol_control_Control_, _ol_Object_);
* @inheritDoc
*/
_ol_control_Control_.prototype.disposeInternal = function() {
_ol_dom_.removeNode(this.element);
removeNode(this.element);
_ol_Object_.prototype.disposeInternal.call(this);
};
@@ -107,7 +107,7 @@ _ol_control_Control_.prototype.getMap = function() {
*/
_ol_control_Control_.prototype.setMap = function(map) {
if (this.map_) {
_ol_dom_.removeNode(this.element);
removeNode(this.element);
}
for (var i = 0, ii = this.listenerKeys.length; i < ii; ++i) {
_ol_events_.unlistenByKey(this.listenerKeys[i]);