From eaf65e005b48ec5204ec5d9ff3a8588ac828499d Mon Sep 17 00:00:00 2001 From: fkloft Date: Wed, 14 Jan 2015 18:13:33 +0100 Subject: [PATCH] [bookmarks-by-zaso] variable not properly renamed Fixes #928 --- plugins/bookmarks-by-zaso.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/bookmarks-by-zaso.user.js b/plugins/bookmarks-by-zaso.user.js index 83a7038a..abbe6dfb 100644 --- a/plugins/bookmarks-by-zaso.user.js +++ b/plugins/bookmarks-by-zaso.user.js @@ -754,7 +754,7 @@ }); if(latlngs.length >= 2 && latlngs.length <= 3) { - // TODO: add an API to draw-tools rather than assuming things about it's internals + // TODO: add an API to draw-tools rather than assuming things about its internals window.plugin.drawTools.setOptions(); var layer, layerType; @@ -784,7 +784,7 @@ } if(view) { - map.fitBounds(newItem.getBounds()); + map.fitBounds(layer.getBounds()); } } else{