Cache now returns null when using get(cacheID) with invalid ID (#441)

* Cache now returns `null` when using get(cacheID) where the ID is invalid.

* Documented `get(id)`

* Adjusted version in conf.py to 8.0.0
This commit is contained in:
Évelyne Lachance
2016-06-26 00:30:24 -04:00
committed by abal
parent d7026f80a4
commit 1577075e52
4 changed files with 10 additions and 2 deletions

View File

@@ -25,6 +25,8 @@ var Cache = (function (_Array) {
if (typeof key === 'function') {
var valid = key;
key = null;
} else if (key && !value) {
return this[discrimCacheS][key] || null;
} else if (key === this[discrimS] && typeof value === "string") {
return this[discrimCacheS][value] || null;
} else if (value && value.constructor.name === 'RegExp') {