Fixed Cache.has function (#344)

* Fixed Cache.has function

* Fixed Cache.has function

* Fixed Cache.has function

and ran grunt --dev
This commit is contained in:
Mees van Dijk
2016-05-13 01:27:13 +02:00
committed by abalabahaha
parent db7dca65b2
commit afc4c93119
2 changed files with 4 additions and 4 deletions

View File

@@ -59,8 +59,8 @@ var Cache = (function (_Array) {
return null;
};
Cache.prototype.has = function has(object) {
return !!this.get(this[discrimS], object[this[discrimS]]);
Cache.prototype.has = function has(key, value) {
return !!this.get(key, value);
};
Cache.prototype.getAll = function getAll(key, value) {

View File

@@ -36,8 +36,8 @@ export default class Cache extends Array {
return null;
}
has(object) {
return !!this.get(this[discrimS], object[this[discrimS]]);
has(key, value) {
return !!this.get(key, value);
}
getAll(key, value) {