[Pkg-javascript-commits] [leaflet] 62/301: map.once doesn't get called when the map is already initailized and drag.enabled is called.
Jonas Smedegaard
js at moszumanska.debian.org
Mon Jan 27 22:22:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet.
commit b4ed2bf2820161c2093209766c7505af2fce84b2
Author: fastrde <strachanski at googlemail.com>
Date: Sat Aug 17 12:13:47 2013 +0200
map.once doesn't get called when the map is already initailized and drag.enabled is called.
---
src/map/handler/Map.Drag.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/map/handler/Map.Drag.js b/src/map/handler/Map.Drag.js
index 89aebfe..1024f15 100644
--- a/src/map/handler/Map.Drag.js
+++ b/src/map/handler/Map.Drag.js
@@ -32,7 +32,7 @@ L.Map.Drag = L.Handler.extend({
this._draggable.on('predrag', this._onPreDrag, this);
map.on('viewreset', this._onViewReset, this);
- map.once('load', this._onViewReset, this);
+ map.whenReady(this._onViewReset, this);
}
}
this._draggable.enable();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git
More information about the Pkg-javascript-commits
mailing list