Use context.keybinding for keybindings that don't change

(closes #5487)
This commit is contained in:
Bryan Housel
2018-11-13 20:57:21 -05:00
parent bb30cbf555
commit 152022aec4
37 changed files with 252 additions and 319 deletions
+3 -4
View File
@@ -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;
}