Remove unused global references from ui-legacy.js
This caught some leftover usages in ui itself, as well as the devices
pane which wasn't ported to ESM yet.
[email protected]
Change-Id: I48f01c3b982b68111fedd3cf4a26b91ed21204ff
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2124490
Reviewed-by: Paul Lewis <[email protected]>
Commit-Queue: Tim van der Lippe <[email protected]>
diff --git a/front_end/ui/SplitWidget.js b/front_end/ui/SplitWidget.js
index 8e5340a..75cd7fc 100644
--- a/front_end/ui/SplitWidget.js
+++ b/front_end/ui/SplitWidget.js
@@ -489,7 +489,7 @@
this._showMode = showMode;
this._saveShowModeToSettings();
this._updateShowHideSidebarButton();
- this.dispatchEventToListeners(SplitWidget.Events.ShowModeChanged, showMode);
+ this.dispatchEventToListeners(Events.ShowModeChanged, showMode);
this.invalidateConstraints();
}
@@ -564,7 +564,7 @@
} else {
// No need to recalculate this._sidebarSizeDIP and this._totalSizeDIP again.
this.doResize();
- this.dispatchEventToListeners(SplitWidget.Events.SidebarSizeChanged, this.sidebarSize());
+ this.dispatchEventToListeners(Events.SidebarSizeChanged, this.sidebarSize());
}
}
@@ -625,7 +625,7 @@
if (this._mainWidget) {
this._mainWidget.doResize();
}
- this.dispatchEventToListeners(SplitWidget.Events.SidebarSizeChanged, this.sidebarSize());
+ this.dispatchEventToListeners(Events.SidebarSizeChanged, this.sidebarSize());
return;
}
this._animationFrameHandle = this.contentElement.window().requestAnimationFrame(boundAnimationFrame);