[Pkg-javascript-commits] [leaflet] 38/301: Return this even when short-circuiting
Jonas Smedegaard
js at moszumanska.debian.org
Mon Jan 27 22:22:40 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 65a311a822d386f6da46cdd0093989ace5a5ca4b
Author: John Firebaugh <john.firebaugh at gmail.com>
Date: Tue Aug 6 10:27:27 2013 -0700
Return this even when short-circuiting
---
src/map/Map.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/map/Map.js b/src/map/Map.js
index 4bee61a..5bfd392 100644
--- a/src/map/Map.js
+++ b/src/map/Map.js
@@ -205,7 +205,7 @@ L.Map = L.Class.extend({
removeLayer: function (layer) {
var id = L.stamp(layer);
- if (!this._layers[id]) { return; }
+ if (!this._layers[id]) { return this; }
if (this._loaded) {
layer.onRemove(this);
@@ -291,7 +291,7 @@ L.Map = L.Class.extend({
// TODO handler.addTo
addHandler: function (name, HandlerClass) {
- if (!HandlerClass) { return; }
+ if (!HandlerClass) { return this; }
var handler = this[name] = new HandlerClass(this);
--
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