mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 08:39:56 +02:00
Use context.keybinding for keybindings that don't change
(closes #5487)
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
export function behaviorEdit(context) {
|
||||
|
||||
function edit() {
|
||||
function behavior() {
|
||||
context.map()
|
||||
.minzoom(context.minEditableZoom());
|
||||
}
|
||||
|
||||
|
||||
edit.off = function() {
|
||||
behavior.off = function() {
|
||||
context.map()
|
||||
.minzoom(0);
|
||||
};
|
||||
|
||||
|
||||
return edit;
|
||||
return behavior;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user