Lazily value import UIEvents in PlotView
@@ -17,7 +17,7 @@ import {Reset} from "core/bokeh_events"
import {Arrayable, Rect, Interval} from "core/types"
import {Signal0} from "core/signaling"
import {build_views, remove_views} from "core/build_views"
-import {UIEvents} from "core/ui_events"
+import /*type*/ {UIEvents} from "core/ui_events"
import {Visuals} from "core/visuals"
import {logger} from "core/logging"
import {Side, RenderLevel} from "core/enums"
@@ -275,6 +275,8 @@ export class PlotView extends LayoutDOMView {
this.throttled_paint = throttle((() => this.force_paint.emit()), 15) // TODO (bev) configurable
+ // XXX: lazy value import to avoid touching window
+ const {UIEvents} = require("core/ui_events")
this.ui_event_bus = new UIEvents(this, this.model.toolbar, this.canvas_view.events_el)
const {title_location, title} = this.model
