From 2666e60f28ef1d2b2a1123bcce5e800fe9e22a25 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Mon, 4 Mar 2013 12:37:55 +0100 Subject: [PATCH] Fix Path#getTangentAt example. --- src/path/Path.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/path/Path.js b/src/path/Path.js index f3eba7b0..530e9a01 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1331,10 +1331,11 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ * // Make the tangent vector 60pt long: * tangent.length = 60; * - * var line = new Path({ - * segments: [point, point + tangent], - * strokeColor: 'red' - * }) + * var line = new Path({ + * segments: [point, point + tangent], + * strokeColor: 'red' + * }) + * } */ getTangentAt: function(offset, isParameter) { var loc = this.getLocationAt(offset, isParameter);