mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Return normalized point
This commit is contained in:
@@ -12,7 +12,9 @@ class Point
|
||||
new Point(row, column)
|
||||
|
||||
@min: (point1, point2) ->
|
||||
if @fromObject(point1).isLessThanOrEqual(@fromObject(point2))
|
||||
point1 = @fromObject(point1)
|
||||
point2 = @fromObject(point2)
|
||||
if point1.isLessThanOrEqual(point2)
|
||||
point1
|
||||
else
|
||||
point2
|
||||
|
||||
Reference in New Issue
Block a user