Merge pull request #240 from giscloud/master

bugfix in the layer _reset method
This commit is contained in:
Vladimir Agafonkin 2011-08-10 12:37:11 -07:00
commit ce72298d66

View File

@ -114,7 +114,7 @@ L.TileLayer = L.Class.extend({
_reset: function(clearOldContainer) {
this._tiles = {};
if (clearOldContainer)
if (clearOldContainer && this._container)
this._container.innerHTML = "";
this._initContainer();
this._container.innerHTML = '';