Merge pull request #2410 from gamb/master

change unload order
This commit is contained in:
Vladimir Agafonkin 2014-01-28 09:42:30 -08:00
commit 02db8b4e1a

View File

@ -205,9 +205,6 @@ L.Map = L.Evented.extend({
},
remove: function () {
if (this._loaded) {
this.fire('unload');
}
this._initEvents('off');
@ -226,6 +223,10 @@ L.Map = L.Evented.extend({
this._clearHandlers();
if (this._loaded) {
this.fire('unload');
}
return this;
},