Move conf outside of webroot; fix func invocation
[mudd.git] / mud.js
diff --git a/mud.js b/mud.js
index 95373f3..b8e3074 100644 (file)
--- 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) {