From 68b6a9356f578ed6eb037201ccbca6eb821b2981 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Wed, 6 Jun 2012 23:19:55 +0100 Subject: [PATCH] [view/map,bugfix][xs]: autozoom working again after breakage in ef74f13163cfee02dd28b8f5ecf6f08e59619ce3. * had change autozoom to be part of state and had not done find/replace fully due to a self.autoZoom case as well as this.autoZoom case. --- src/view.map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view.map.js b/src/view.map.js index 21c0dca2..624ef29d 100644 --- a/src/view.map.js +++ b/src/view.map.js @@ -61,7 +61,7 @@ my.Map = Backbone.View.extend({ // to display properly if (self.map){ self.map.invalidateSize(); - if (self._zoomPending && self.autoZoom) { + if (self._zoomPending && self.state.get('autoZoom')) { self._zoomToFeatures(); self._zoomPending = false; }