From da0c866ac31a5d0a27427092f6506ce621c56542 Mon Sep 17 00:00:00 2001 From: fkloft Date: Fri, 10 Apr 2015 21:02:36 +0200 Subject: [PATCH] Remove call to plugin.drawTools.setOptions from bookmarks - setOptions is usually only called once: when booting drawTools - no need to call it repeatedly - known to break a third party plugin (which we don't support, but no reason to make it hard) --- plugins/bookmarks-by-zaso.user.js | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/bookmarks-by-zaso.user.js b/plugins/bookmarks-by-zaso.user.js index 6ab48e41..d4c6f6a3 100644 --- a/plugins/bookmarks-by-zaso.user.js +++ b/plugins/bookmarks-by-zaso.user.js @@ -810,7 +810,6 @@ if(latlngs.length >= 2 && latlngs.length <= 3) { // TODO: add an API to draw-tools rather than assuming things about its internals - window.plugin.drawTools.setOptions(); var layer, layerType; if(latlngs.length == 2) {