update build

This commit is contained in:
Vladimir Agafonkin 2013-06-25 11:31:29 -04:00
parent 55a36e2fe8
commit 9db93e4635
2 changed files with 9 additions and 10 deletions

17
dist/leaflet-src.js vendored
View File

@ -1551,9 +1551,14 @@ L.Map = L.Class.extend({
}
this._handlers = [];
this._layers = {};
this._zoomBoundLayers = {};
this._tileLayersNum = 0;
this.callInitHooks();
this._initLayers(options.layers);
this._addLayers(options.layers);
},
@ -2052,16 +2057,10 @@ L.Map = L.Class.extend({
this._container.removeChild(this._mapPane);
},
_initLayers: function (layers) {
_addLayers: function (layers) {
layers = layers ? (L.Util.isArray(layers) ? layers : [layers]) : [];
this._layers = {};
this._zoomBoundLayers = {};
this._tileLayersNum = 0;
var i, len;
for (i = 0, len = layers.length; i < len; i++) {
for (var i = 0, len = layers.length; i < len; i++) {
this.addLayer(layers[i]);
}
},

2
dist/leaflet.js vendored

File diff suppressed because one or more lines are too long