From e359dd038c2698aba4649f2c3157195392854504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 24 May 2013 17:14:39 -0700 Subject: [PATCH] Add explaining comment. --- src/basic/Rectangle.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/basic/Rectangle.js b/src/basic/Rectangle.js index 46452385..dd64ac61 100644 --- a/src/basic/Rectangle.js +++ b/src/basic/Rectangle.js @@ -126,6 +126,7 @@ var Rectangle = this.Rectangle = Base.extend(/** @lends Rectangle# */{ var to = Point.readNamed(arguments, 'to'); this.width = to.x - point.x; this.height = to.y - point.y; + // Check if horizontal or vertical order needs to be reversed. if (this.width < 0) { this.x = to.x; this.width = -this.width;