Inline the Toolbar._localized
method in the 'localized' event handler
Considering just how small/simple this code is, it doesn't seem necessary to have a separate method for it (even more so when there's only one call-site).
This commit is contained in:
parent
eaa2e216f4
commit
07473e9e2a
@ -152,14 +152,10 @@ class Toolbar {
|
||||
scaleSelect.oncontextmenu = noContextMenuHandler;
|
||||
|
||||
this.eventBus.on('localized', () => {
|
||||
this._localized();
|
||||
});
|
||||
}
|
||||
|
||||
_localized() {
|
||||
this._wasLocalized = true;
|
||||
this._adjustScaleWidth();
|
||||
this._updateUIState(true);
|
||||
});
|
||||
}
|
||||
|
||||
_updateUIState(resetNumPages = false) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user