From f9920c87f09f24c703cab230b8ffea532f057705 Mon Sep 17 00:00:00 2001 From: jacobtoye Date: Fri, 21 Jun 2013 09:38:44 +1200 Subject: [PATCH] Moving brace to correct position. --- src/map/Map.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/Map.js b/src/map/Map.js index 91c723a9..1badfa60 100644 --- a/src/map/Map.js +++ b/src/map/Map.js @@ -257,13 +257,14 @@ L.Map = L.Class.extend({ } else { if (!changeCenter) { this._rawPanBy(offset); + } this.fire('move'); - } clearTimeout(this._sizeTimer); this._sizeTimer = setTimeout(L.bind(this.fire, this, 'moveend'), 200); } + this.fire('resize', { oldSize: oldSize, newSize: newSize