From a69354b5353e4956c5b7af91b3864ba2c38a319a Mon Sep 17 00:00:00 2001 From: Lewis Hemens Date: Sun, 12 Jan 2014 10:48:39 +0000 Subject: [PATCH] Fixed some type errors --- js-lib/common.js | 4 ++-- js-lib/state.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js-lib/common.js b/js-lib/common.js index e0ce8c2..0c2d312 100644 --- a/js-lib/common.js +++ b/js-lib/common.js @@ -23,7 +23,7 @@ ascii.Vector.prototype.equals = function(other) { /** * @param {ascii.Vector} other - * @return {boolean} + * @return {ascii.Vector} */ ascii.Vector.prototype.subtract = function(other) { return new ascii.Vector(this.x - other.x, this.y - other.y); @@ -31,7 +31,7 @@ ascii.Vector.prototype.subtract = function(other) { /** * @param {ascii.Vector} other - * @return {boolean} + * @return {ascii.Vector} */ ascii.Vector.prototype.add = function(other) { return new ascii.Vector(this.x + other.x, this.y + other.y); diff --git a/js-lib/state.js b/js-lib/state.js index 69b35fa..24c816b 100644 --- a/js-lib/state.js +++ b/js-lib/state.js @@ -41,7 +41,7 @@ ascii.State = function() { * Returns the cell at the given coordinates. * * @param {ascii.Vector} vector - * @return {asii.Cell} + * @return {ascii.Cell} */ ascii.State.prototype.getCell = function(vector) { return this.cells[vector.x][vector.y];