From: Dylan Lloyd Date: Fri, 4 Oct 2013 13:04:00 +0000 (+0000) Subject: typo & rm console.logs X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=bb9e9003402e5a4d72dd0a00ad962c136f033639;p=mudd.git typo & rm console.logs --- 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'); } }