From 7bcb1cc59f4af9bd302df70efbeaa7437bd5f17f Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Sat, 20 Feb 2016 00:44:33 +0300 Subject: [PATCH] return clone of bounds in Overlay.getBounds so original bounds wouldn't be affected --- src/overlay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/overlay.js b/src/overlay.js index a2a5b1a3..ac464c7a 100644 --- a/src/overlay.js +++ b/src/overlay.js @@ -319,7 +319,7 @@ */ getBounds: function() { - return this.bounds; + return this.bounds.clone(); } };