Fixed click event after disabled dragging bug, closed #434

This commit is contained in:
mourner 2012-02-15 19:26:17 +02:00
parent 6040d8bf77
commit df0800e678
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ Leaflet Changelog
### Bug fixes
* Fixed a bug where `TileLayer.WMS` wouldn't take `insertAtTheBottom` option into account (by [@bmcbride](https://github.com/bmcbride)). [#478](https://github.com/CloudMade/Leaflet/pull/478)
* Fixed a bug where marker click event would stop working if you dragged it and then disabled dragging. [#434](https://github.com/CloudMade/Leaflet/issues/434)
## 0.3.2 RC

View File

@ -31,6 +31,7 @@ L.Draggable = L.Class.extend({
}
L.DomEvent.removeListener(this._dragStartTarget, L.Draggable.START, this._onDown);
this._enabled = false;
this._moved = false;
},
_onDown: function (e) {