Named exports from ol/Observable

This commit is contained in:
Frederic Junod
2018-02-21 09:01:08 +01:00
parent e2854b3176
commit 2fd75566fb
6 changed files with 12 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import Observable from '../src/ol/Observable.js';
import {unByKey} from '../src/ol/Observable.js';
import Overlay from '../src/ol/Overlay.js';
import {getArea, getLength} from '../src/ol/sphere.js';
import View from '../src/ol/View.js';
@@ -238,7 +238,7 @@ function addInteraction() {
// unset tooltip so that a new one can be created
measureTooltipElement = null;
createMeasureTooltip();
Observable.unByKey(listener);
unByKey(listener);
}, this);
}