fix TileLayer.brintToFront/Back on IE6-8, close #1168

This commit is contained in:
Vladimir Agafonkin 2013-01-11 18:33:17 +02:00
parent 3d1bb11919
commit bc4104c708

View File

@ -166,7 +166,7 @@ L.TileLayer = L.Class.extend({
_setAutoZIndex: function (pane, compare) {
var layers = pane.getElementsByClassName('leaflet-layer'),
var layers = pane.children,
edgeZIndex = -compare(Infinity, -Infinity), // -Infinity for max, Infinity for min
zIndex, i, len;