This commit is contained in:
abalabahaha
2016-05-08 00:09:58 -07:00
parent 726c0e9ed5
commit 963b22e6ce
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ var Cache = (function (_Array) {
Cache.prototype.remove = function remove(data) {
delete this[discrimCacheS][data[this[discrimS]]];
for (var i in this) {
if (this[i][this[discrimS]] === data[this[discrimS]]) {
if (this[i] && this[i][this[discrimS]] === data[this[discrimS]]) {
this.splice(i, 1);
return true;
}