});
},
move : function(direction) {
- this.player.move(direction);
+ self.player.move(direction);
},
}
this.writeToLog = function(action, style, msg) {
$.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) {
$this->update('DELETE FROM players');
break;
default:
- $this->error(400, 'Unknown command');
+ $this->error(400, 'unknown command');
}
}