This commit is contained in:
Jeremiah Billmann
2013-07-14 11:37:16 -04:00
parent f9409434bf
commit 4911079981
3 changed files with 12 additions and 4 deletions
@@ -31,5 +31,13 @@ EntityController.prototype = {
return;
}
}
},
setState: function (id, state) {
this.entities.some(function (entity) {
if (entity.client.id === id) {
entity.state = state;
return true;
}
});
}
};