Named exports from ol/events

This commit is contained in:
Tim Schaub
2018-01-24 10:09:57 -07:00
parent 1786bbbe80
commit 7e7631c42a
74 changed files with 437 additions and 445 deletions

View File

@@ -6,7 +6,7 @@ import {inherits} from '../../index.js';
import {stableSort} from '../../array.js';
import {CLASS_UNSELECTABLE} from '../../css.js';
import {createCanvasContext2D} from '../../dom.js';
import _ol_events_ from '../../events.js';
import {listen} from '../../events.js';
import _ol_has_ from '../../has.js';
import Layer from '../../layer/Layer.js';
import RenderEvent from '../../render/Event.js';
@@ -92,9 +92,9 @@ const WebGLMapRenderer = function(container, map) {
*/
this.context_ = new _ol_webgl_Context_(this.canvas_, this.gl_);
_ol_events_.listen(this.canvas_, ContextEventType.LOST,
listen(this.canvas_, ContextEventType.LOST,
this.handleWebGLContextLost, this);
_ol_events_.listen(this.canvas_, ContextEventType.RESTORED,
listen(this.canvas_, ContextEventType.RESTORED,
this.handleWebGLContextRestored, this);
/**