Make AEGIS.agent return the requested agent
Previously, it just returns the first agent in the hash.
return agents;
},
agent: function (uuid) {
- for (var uuid in this.data.agent || {}) {
- var agent = this.data.agent[uuid];
+ for (var u in this.data.agent || {}) {
+ var agent = this.data.agent[u];
if (!agent.hidden && (agent.uuid == uuid || agent.address == uuid)) {
return agent;
}
