[Pkg-javascript-commits] [leaflet] 03/40: Trigger remove when removing canvas layers
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:33:06 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 c6d360751400afea4f0adfd190da0253f8a2797e
Author: Alexander Dimitrov <dimitrov at loggator.com>
Date: Mon Feb 24 23:54:15 2014 +0200
Trigger remove when removing canvas layers
---
src/layer/vector/canvas/Path.Canvas.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/layer/vector/canvas/Path.Canvas.js b/src/layer/vector/canvas/Path.Canvas.js
index 8d03801..5906a38 100644
--- a/src/layer/vector/canvas/Path.Canvas.js
+++ b/src/layer/vector/canvas/Path.Canvas.js
@@ -42,7 +42,8 @@ L.Path = (L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? L.Path :
}
this._requestUpdate();
-
+
+ this.fire('remove');
this._map = null;
},
--
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