prepare router, forcegraph, map for destroy/reload

This commit is contained in:
Nils Schneider 2015-03-31 23:24:24 +02:00
commit 473734f2bb
3 changed files with 40 additions and 8 deletions

View file

@ -182,6 +182,10 @@ define(["leaflet", "moment", "leaflet.label"], function (L, moment) {
resetView()
}
self.destroy = function () {
map.remove()
}
return self
}
})