mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Don't instantiate uiShortcuts or its keybinding multiple times
This commit is contained in:
+3
-1
@@ -418,7 +418,7 @@ export function uiInit(context) {
|
||||
}
|
||||
|
||||
context.container()
|
||||
.call(uiShortcuts(context));
|
||||
.call(ui.shortcuts);
|
||||
}
|
||||
|
||||
var osm = context.connection();
|
||||
@@ -499,6 +499,8 @@ export function uiInit(context) {
|
||||
|
||||
ui.photoviewer = uiPhotoviewer(context);
|
||||
|
||||
ui.shortcuts = uiShortcuts(context);
|
||||
|
||||
ui.onResize = function(withPan) {
|
||||
var map = context.map();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user