mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-16 01:10:07 +08:00
Moved remove into base
This commit is contained in:
@@ -25,6 +25,11 @@ EntityController.prototype = {
|
||||
return newEntity;
|
||||
},
|
||||
remove: function (id) {
|
||||
|
||||
for (var i = 0; i < this.entities.length; i ++) {
|
||||
if (this.entities[i].id === id) {
|
||||
this.entities.splice(i, 1)[0];
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user