From 5c941a647961a69724dfaa29205958a1d5b6b55d Mon Sep 17 00:00:00 2001 From: ippo615 Date: Tue, 3 Dec 2013 18:37:17 -0500 Subject: [PATCH] Fixed jshint errors --- src/plugins/Path.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/plugins/Path.js b/src/plugins/Path.js index c9186098..a0f7db48 100644 --- a/src/plugins/Path.js +++ b/src/plugins/Path.js @@ -295,21 +295,21 @@ // Note: lineTo handlers need to be above this point case 'm': - var dx = p.shift(); - var dy = p.shift(); + var dx = p.shift(); + var dy = p.shift(); cpx += dx; cpy += dy; cmd = 'M'; // After closing the path move the current position // to the the first point of the path (if any). if(ca.length>2 && ca[ca.length-1].command==='z'){ - for(var idx=ca.length-2;idx>=0;idx--){ - if(ca[idx].command==='M'){ - cpx=ca[idx].points[0]+dx; - cpy=ca[idx].points[1]+dy; - break; - } - } + for(var idx=ca.length-2;idx>=0;idx--){ + if(ca[idx].command==='M'){ + cpx=ca[idx].points[0]+dx; + cpy=ca[idx].points[1]+dy; + break; + } + } } points.push(cpx, cpy); c = 'l';