From 88603e2771a5bbe283f6fc2bf7a3df409278f996 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 6 Aug 2013 17:35:39 -0600 Subject: [PATCH] Use normalized variables instead of original parameters --- src/app/range.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/range.coffee b/src/app/range.coffee index 2eb393e98..1b3ec66da 100644 --- a/src/app/range.coffee +++ b/src/app/range.coffee @@ -31,9 +31,9 @@ class Range # columnDelta - A {Number} indicating how far from the starting {Point} the range's column should be # # Returns the new {Range}. - @fromPointWithDelta: (point, rowDelta, columnDelta) -> - pointA = Point.fromObject(point) - pointB = new Point(point.row + rowDelta, point.column + columnDelta) + @fromPointWithDelta: (pointA, rowDelta, columnDelta) -> + pointA = Point.fromObject(pointA) + pointB = new Point(pointA.row + rowDelta, pointA.column + columnDelta) new Range(pointA, pointB) # Creates a new `Range` object based on two {Point}s.