Token Caching now works

This commit is contained in:
Amish Shah
2015-12-14 18:06:03 +00:00
parent a122f0994e
commit 8f5722d242
7 changed files with 71 additions and 26 deletions

View File

@@ -14,10 +14,11 @@ export default class Cache extends Array {
if (key === this[discrimS])
return this[discrimCacheS][value] || null;
var l = this.length;
for (var i = 0; i < l; i++)
if (this[i][key] == value)
return this[i];
for(var item of this){
if(item[key] == value){
return item;
}
}
return null;
}