From d70c9b0464770adf17533957711508d94959b2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 5 May 2013 23:19:22 -0700 Subject: [PATCH] Minor syntax fixes. --- src/path/Path.js | 2 +- src/path/PathItem.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/Path.js b/src/path/Path.js index 6f8f3b85..2993b114 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -2104,7 +2104,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ // and (through, to), and intersect them to get the center var l1 = new Line(from.add(through).divide(2), through.subtract(from).rotate(90)), - l2 = new Line(through.add(to).divide(2), + l2 = new Line(through.add(to).divide(2), to.subtract(through).rotate(90)), center = l1.intersect(l2), line = new Line(from, to, true), diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 2d054f83..2568de87 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -175,7 +175,7 @@ var PathItem = this.PathItem = Item.extend(/** @lends PathItem# */{ break; } } - }, + } /** * Smooth bezier curves without changing the amount of segments or their