From cb790bc6a0820db201f373467a6deead8ee1d455 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Sat, 6 Feb 2010 00:38:59 +0000 Subject: [PATCH] Remove commented out debug code git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1349 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 3dc9fa49..01160b3d 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -3569,21 +3569,11 @@ function BatchCommand(text) { // the control points on both sides if (prevCtlPt) { var newpts = smoothControlPoints( prevCtlPt, ct1, curpos ); - if (newpts.length == 2) { - // set previous control point 2 -// console.log("prev ctl point 2 = " + prevCtlPt.x + "," + prevCtlPt.y); -// console.log(d[d.length-1]); -// console.log(newpts); + if (newpts && newpts.length == 2) { var prevArr = d[d.length-1].split(','); -// console.log("prevArr[2]=" + prevArr[2]); -// console.log(newpts[0].x); prevArr[2] = newpts[0].x; prevArr[3] = newpts[0].y; -// console.log(prevArr); - // TODO: do I need to update d or is the array a reference? -// console.log(d[d.length-1]); d[d.length-1] = prevArr.join(','); -// console.log(d[d.length-1]); ct1 = newpts[1]; } }