From 594c11feddf50acb97dd8c39e8fbda1632904926 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Mon, 11 Apr 2011 19:36:40 +0200 Subject: [PATCH] CurveLocation: fix mistakes. --- src/path/CurveLocation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/CurveLocation.js b/src/path/CurveLocation.js index 9507cd88..ec5db3e2 100644 --- a/src/path/CurveLocation.js +++ b/src/path/CurveLocation.js @@ -93,7 +93,7 @@ CurveLocation = Base.extend({ getParameter: function() { if (this._parameter == -1 && this._point != null) this._parameter = this._curve.getParameter(point); - return this._parameter != -1 ? parameter : null; + return this._parameter != -1 ? this._parameter : null; }, /** @@ -110,7 +110,7 @@ CurveLocation = Base.extend({ * The item this curve belongs to, if any. */ getItem: function() { - return this._curve != null ? curve.getPath() : null; + return this._curve != null ? this._curve.getPath() : null; }, toString: function() {