From 371d8814367ffb42f4640e6b785d4ddbacfea8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Wed, 15 Oct 2014 11:33:09 +0200 Subject: [PATCH] fixed a few js errors in BFJoustBot_script --- www/javascript/blogpost_BFJoustBot_script.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/javascript/blogpost_BFJoustBot_script.js b/www/javascript/blogpost_BFJoustBot_script.js index bdf8a27..4ac8d74 100644 --- a/www/javascript/blogpost_BFJoustBot_script.js +++ b/www/javascript/blogpost_BFJoustBot_script.js @@ -53,19 +53,19 @@ var RepetitionState = { OPEN: 10, CLOSED: 11, AWAITING_NUMBER: 12, - FINISHED: 13, + FINISHED: 13 }; var RepetitionMode = { UNDEFINIED: 10, ITERATIVE: 11, - RECURSIVE: 12, + RECURSIVE: 12 }; var MatchWinner = { UNDEFINIED: 0, PLAYER_1: 10, DRAW: 15, PLAYER_2: 20, - ABORT: -1, + ABORT: -1 }; var BF_CHARS = ['+', '-', '<', '>', '[', ']', '.']; @@ -443,7 +443,7 @@ BFMatch.prototype.start = function(canvas, width, height, speed) { BFMatch.prototype.stop = function(winner) { if (winner == MatchWinner.UNDEFINIED) - throw new "can't stop on undef"; + throw ("can't stop on undef"); if (this._intervalID != -1) { clearInterval(this._intervalID); @@ -466,7 +466,7 @@ BFMatch.prototype.stop = function(winner) { this.winner = MatchWinner.ABORT; break; default: - throw new "no-enum value in stop()"; + throw ( "no-enum value in stop()" ); } };