Copy paste fail

This commit is contained in:
abalabahaha
2016-03-12 23:43:24 -08:00
parent 42bedbeee4
commit e525e3b722
2 changed files with 2 additions and 2 deletions

View File

@@ -136,7 +136,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]] === old[this[discrimS]]) {
if (this[i][this[discrimS]] === data[this[discrimS]]) {
this.splice(i, 1);
return this[i];
}

View File

@@ -100,7 +100,7 @@ export default class Cache extends Array {
remove(data) {
delete this[discrimCacheS][data[this[discrimS]]];
for(var i in this) {
if(this[i][this[discrimS]] === old[this[discrimS]]) {
if(this[i][this[discrimS]] === data[this[discrimS]]) {
this.splice(i, 1);
return this[i];
}