Skip to content

Commit

Permalink
Merge pull request #199 from ryngonzalez/patch-1
Browse files Browse the repository at this point in the history
Bugfix: Map over points array vs. non-existent point variable.
  • Loading branch information
koenbok committed Apr 9, 2015
2 parents bf78d4f + b981855 commit 7ff0515
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framer/Utils.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -501,14 +501,14 @@ Utils.pointZero = (args={}) ->
Utils.pointMin = -> Utils.pointMin = ->
points = Utils.arrayFromArguments arguments points = Utils.arrayFromArguments arguments
point = point =
x: _.min point.map (size) -> size.x x: _.min points.map (size) -> size.x
y: _.min point.map (size) -> size.y y: _.min points.map (size) -> size.y


Utils.pointMax = -> Utils.pointMax = ->
points = Utils.arrayFromArguments arguments points = Utils.arrayFromArguments arguments
point = point =
x: _.max point.map (size) -> size.x x: _.max points.map (size) -> size.x
y: _.max point.map (size) -> size.y y: _.max points.map (size) -> size.y


Utils.pointDistance = (pointA, pointB) -> Utils.pointDistance = (pointA, pointB) ->
distance = distance =
Expand Down

0 comments on commit 7ff0515

Please sign in to comment.