fix IE9 regression (sorry!)

This commit is contained in:
Vladimir Agafonkin 2012-08-07 18:43:52 +03:00
parent 968aece11e
commit 2aa30376db
6 changed files with 15 additions and 11 deletions

View File

@ -9,7 +9,7 @@ An in-progress version being developed on the master branch.
* No changes since the stable version yet.
## 0.4.3 (August 7, 2012)
## 0.4.4 (August 7, 2012)
### Improvements

View File

@ -111,7 +111,7 @@
for (var i = 0; i < scripts.length; i++) {
document.writeln("<script src='" + path + scripts[i] + "'></script>");
}
document.writeln('<script>L.Icon.Default.imagePath = "' + path + '../dist/images";</script>');
document.writeln('<script defer>L.Icon.Default.imagePath = "' + path + '../dist/images";</script>');
})();
function getRandomLatLng(map) {

8
dist/leaflet-src.js vendored
View File

@ -21,7 +21,7 @@ if (typeof exports !== undefined + '') {
window.L = L;
}
L.version = '0.4.3';
L.version = '0.4.4';
/*
@ -7384,9 +7384,11 @@ L.Map.mergeOptions({
zoomAnimation: L.DomUtil.TRANSITION && !L.Browser.android23 && !L.Browser.mobileOpera
});
L.Map.addInitHook(function () {
if (L.DomUtil.TRANSITION) {
L.Map.addInitHook(function () {
L.DomEvent.on(this._mapPane, L.Transition.END, this._catchTransitionEnd, this);
});
});
}
L.Map.include(!L.DomUtil.TRANSITION ? {} : {

2
dist/leaflet.js vendored

File diff suppressed because one or more lines are too long

View File

@ -14,4 +14,4 @@ if (typeof exports !== undefined + '') {
window.L = L;
}
L.version = '0.4.3';
L.version = '0.4.4';

View File

@ -2,9 +2,11 @@ L.Map.mergeOptions({
zoomAnimation: L.DomUtil.TRANSITION && !L.Browser.android23 && !L.Browser.mobileOpera
});
L.Map.addInitHook(function () {
if (L.DomUtil.TRANSITION) {
L.Map.addInitHook(function () {
L.DomEvent.on(this._mapPane, L.Transition.END, this._catchTransitionEnd, this);
});
});
}
L.Map.include(!L.DomUtil.TRANSITION ? {} : {