[Pkg-javascript-commits] [leaflet] 11/301: Corrected camelcasing of lineCap and lineJoin.

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:38 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 ede3aebf6a2823cb17f6a29215e7aeecc073b57b
Author: palewire <ben.welsh at gmail.com>
Date:   Thu Jul 18 06:56:42 2013 -0700

    Corrected camelcasing of lineCap and lineJoin.
---
 src/layer/vector/Path.SVG.js | 4 ++--
 src/layer/vector/Path.VML.js | 8 ++++----
 src/layer/vector/Path.js     | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/layer/vector/Path.SVG.js b/src/layer/vector/Path.SVG.js
index 276ea38..d9e36c5 100644
--- a/src/layer/vector/Path.SVG.js
+++ b/src/layer/vector/Path.SVG.js
@@ -81,10 +81,10 @@ L.Path = L.Path.extend({
 				this._path.removeAttribute('stroke-dasharray');
 			}
 			if (this.options.lineCap) {
-				this._path.setAttribute('stroke-linecap', this.options.linecap);
+				this._path.setAttribute('stroke-linecap', this.options.lineCap);
 			}
 			if (this.options.lineJoin) {
-				this._path.setAttribute('stroke-linejoin', this.options.linejoin);
+				this._path.setAttribute('stroke-linejoin', this.options.lineJoin);
 			}
 		} else {
 			this._path.setAttribute('stroke', 'none');
diff --git a/src/layer/vector/Path.VML.js b/src/layer/vector/Path.VML.js
index ae5dfe4..3598bf9 100644
--- a/src/layer/vector/Path.VML.js
+++ b/src/layer/vector/Path.VML.js
@@ -82,11 +82,11 @@ L.Path = L.Browser.svg || !L.Browser.vml ? L.Path : L.Path.extend({
 			} else {
 				stroke.dashStyle = '';
 			}
-			if (options.linecap) {
-				stroke.endcap = options.linecap.replace('butt', 'flat');
+			if (options.lineCap) {
+				stroke.endcap = options.lineCap.replace('butt', 'flat');
 			}
-			if (options.linejoin) {
-				stroke.joinstyle = options.linejoin;
+			if (options.lineJoin) {
+				stroke.joinstyle = options.lineJoin;
 			}
 
 		} else if (stroke) {
diff --git a/src/layer/vector/Path.js b/src/layer/vector/Path.js
index 660ed33..47f7b01 100644
--- a/src/layer/vector/Path.js
+++ b/src/layer/vector/Path.js
@@ -20,8 +20,8 @@ L.Path = L.Class.extend({
 		stroke: true,
 		color: '#0033ff',
 		dashArray: null,
-		linecap: null,
-		linejoin: null,
+		lineCap: null,
+		lineJoin: null,
 		weight: 5,
 		opacity: 0.5,
 

-- 
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