From bb9e9003402e5a4d72dd0a00ad962c136f033639 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Fri, 4 Oct 2013 13:04:00 +0000 Subject: [PATCH] typo & rm console.logs --- mud.js | 4 +--- mud.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mud.js b/mud.js index 95373f3..b8e3074 100644 --- a/mud.js +++ b/mud.js @@ -158,7 +158,7 @@ $(document).ready(function(){ }); }, move : function(direction) { - this.player.move(direction); + self.player.move(direction); }, } this.writeToLog = function(action, style, msg) { @@ -226,8 +226,6 @@ $(document).ready(function(){ $.getJSON(endpoint, { 'cmd' : 'start' }, function(json) { self.build(json) - }).fail(function(jqxhr, textStatus, error) { - console.log(jqxhr, jqxhr.responseText, textStatus, error); }); this.populate = function(players) { diff --git a/mud.php b/mud.php index f3db120..0cf35bc 100644 --- a/mud.php +++ b/mud.php @@ -253,7 +253,7 @@ class mud extends model { $this->update('DELETE FROM players'); break; default: - $this->error(400, 'Unknown command'); + $this->error(400, 'unknown command'); } } -- 2.30.2