Permalink
Browse files

Fixed layers control in IE7, closed #652

  • Loading branch information...
1 parent 796105a commit 3c8495b6f3e4270698a35760dcf29948b131fc66 @mourner mourner committed May 16, 2012
Showing with 5 additions and 4 deletions.
  1. +1 −0 CHANGELOG.md
  2. +1 −1 debug/leaflet-include.js
  3. +1 −1 dist/leaflet-src.js
  4. +1 −1 dist/leaflet.js
  5. +1 −1 src/control/Control.Layers.js
View
@@ -91,6 +91,7 @@ An in-progress version being developed on the master branch.
* Fixed a bug where cursor would flicker when dragging a marker.
* Fixed a bug where clickable paths on IE9 didn't have a hand cursor (by [naehrstoff](https://github.com/naehrstoff)). [#671](https://github.com/CloudMade/Leaflet/pull/671)
* Fixed a bug in IE with disappearing icons when changing opacity (by [tagliala](https://github.com/tagliala) and [DamonOehlman](https://github.com/DamonOehlman)). [#667](https://github.com/CloudMade/Leaflet/pull/667) [#600](https://github.com/CloudMade/Leaflet/pull/600)
+ * Fixed a bug where `Control.Layers` didn't work on IE7. [#652](https://github.com/CloudMade/Leaflet/issues/652)
#### Mobile browser bugfixes
@@ -109,7 +109,7 @@
for (var i = 0; i < scripts.length; i++) {
document.writeln("<script src='" + path + scripts[i] + "'></script>");
}
- document.writeln('<script defer=defer>L.Icon.Default.imagePath = "' + path + '../dist/images";</script>');
+ document.writeln('<script>L.Icon.Default.imagePath = "' + path + '../dist/images";</script>');
})();
function getRandomLatLng(map) {
View
@@ -5890,8 +5890,8 @@ L.Control.Layers = L.Control.extend({
input.name = 'leaflet-base-layers';
}
input.type = obj.overlay ? 'checkbox' : 'radio';
- input.checked = this._map.hasLayer(obj.layer);
input.layerId = L.Util.stamp(obj.layer);
+ input.defaultChecked = this._map.hasLayer(obj.layer);
L.DomEvent.addListener(input, 'click', this._onInputClick, this);
View
Oops, something went wrong.
@@ -125,8 +125,8 @@ L.Control.Layers = L.Control.extend({
input.name = 'leaflet-base-layers';
}
input.type = obj.overlay ? 'checkbox' : 'radio';
- input.checked = this._map.hasLayer(obj.layer);
input.layerId = L.Util.stamp(obj.layer);
+ input.defaultChecked = this._map.hasLayer(obj.layer);
L.DomEvent.addListener(input, 'click', this._onInputClick, this);

0 comments on commit 3c8495b

Please sign in to comment.