Fixed jshint errors

This commit is contained in:
ippo615
2013-12-03 18:37:17 -05:00
parent 632b81137a
commit 5c941a6479

View File

@@ -295,21 +295,21 @@
// Note: lineTo handlers need to be above this point // Note: lineTo handlers need to be above this point
case 'm': case 'm':
var dx = p.shift(); var dx = p.shift();
var dy = p.shift(); var dy = p.shift();
cpx += dx; cpx += dx;
cpy += dy; cpy += dy;
cmd = 'M'; cmd = 'M';
// After closing the path move the current position // After closing the path move the current position
// to the the first point of the path (if any). // to the the first point of the path (if any).
if(ca.length>2 && ca[ca.length-1].command==='z'){ if(ca.length>2 && ca[ca.length-1].command==='z'){
for(var idx=ca.length-2;idx>=0;idx--){ for(var idx=ca.length-2;idx>=0;idx--){
if(ca[idx].command==='M'){ if(ca[idx].command==='M'){
cpx=ca[idx].points[0]+dx; cpx=ca[idx].points[0]+dx;
cpy=ca[idx].points[1]+dy; cpy=ca[idx].points[1]+dy;
break; break;
} }
} }
} }
points.push(cpx, cpy); points.push(cpx, cpy);
c = 'l'; c = 'l';