1
0
Fork 0

Bugfix Rectangle.js

This commit is contained in:
Starbeamrainbowlabs 2017-02-23 18:15:18 +00:00
parent cfbb0ec2f1
commit 38993fc4cb
2 changed files with 5 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class Rectangle
* The Y coordinate of the top of the rectangle. * The Y coordinate of the top of the rectangle.
* @returns {Number} * @returns {Number}
*/ */
get Top { get Top() {
return this.y; return this.y;
} }
@ -50,7 +50,7 @@ class Rectangle
* The Y coordinate of the bottom of the rectangle. * The Y coordinate of the bottom of the rectangle.
* @returns {Number} * @returns {Number}
*/ */
get Bottom { get Bottom() {
return this.y + this.height; return this.y + this.height;
} }
@ -93,6 +93,6 @@ class Rectangle
* Don't forget to clone it before editing! * Don't forget to clone it before editing!
* @type {Rectangle} * @type {Rectangle}
*/ */
Rectangle.Zero = new Rectangle(0, 0, 0, 0);) Rectangle.Zero = new Rectangle(0, 0, 0, 0);
export default Rectangle; export default Rectangle;

View File

@ -17,6 +17,8 @@ do
done done
error_count=$(cat ${counter_filename}); error_count=$(cat ${counter_filename});
echo
echo Errors: $error_count echo Errors: $error_count
# Uncomment to make npm die if this script doesn't work correctly # Uncomment to make npm die if this script doesn't work correctly