[Pkg-javascript-commits] [leaflet-markercluster] 62/219: Fix indentation to make Jake and TravisCI happy.

Jonas Smedegaard dr at jones.dk
Sat May 7 09:39:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit 477a0e47d2adbd01265820cd0cbc7d50eb7ae232
Author: Iván Sánchez Ortega <ivan at mazemap.no>
Date:   Tue Feb 10 15:51:20 2015 +0100

    Fix indentation to make Jake and TravisCI happy.
---
 src/MarkerOpacity.js | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/MarkerOpacity.js b/src/MarkerOpacity.js
index f1df08c..beaef09 100644
--- a/src/MarkerOpacity.js
+++ b/src/MarkerOpacity.js
@@ -1,26 +1,26 @@
 
 /*
- * Extends L.Marker to include two extra methods: clusterHide and clusterShow.
- * 
- * They work as setOpacity(0) and setOpacity(1) respectively, but
- * they will remember the marker's opacity when hiding and showing it again.
- * 
- */
+* Extends L.Marker to include two extra methods: clusterHide and clusterShow.
+* 
+* They work as setOpacity(0) and setOpacity(1) respectively, but
+* they will remember the marker's opacity when hiding and showing it again.
+* 
+*/
 
 
 L.Marker.include({
-  
-  clusterHide: function(){
-    this.options.opacityWhenUnclustered = this.options.opacity || 1;
-    return this.setOpacity(0);
-  },
-  
-  clusterShow: function(){
-    var ret = this.setOpacity(this.options.opacity || this.options.opacityWhenUnclustered);
-    delete this.options.opacityWhenUnclustered;
-    return ret;
-  }
-  
+	
+	clusterHide: function () {
+		this.options.opacityWhenUnclustered = this.options.opacity || 1;
+		return this.setOpacity(0);
+	},
+	
+	clusterShow: function () {
+		var ret = this.setOpacity(this.options.opacity || this.options.opacityWhenUnclustered);
+		delete this.options.opacityWhenUnclustered;
+		return ret;
+	}
+	
 });
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git



More information about the Pkg-javascript-commits mailing list