Skip to content
Browse files

Fixed clearMatches method

  • Loading branch information...
1 parent e743d24 commit bd5d6c3663a1d1361fc235b501d5b93561c354c1 @jondubois committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 cache.js
View
4 cache.js
@@ -290,9 +290,7 @@ var Cache = function (options) {
for (i in self._cache) {
if (regex.test(i)) {
keyParts = i.split(self.ENCODING_SEPARATOR);
- delete self._cache[i];
- self._removeKeyEncoding(keyParts[1], keyParts[0]);
- self.emit('clear', keyParts[1], keyParts[0]);
+ self.clear(keyParts[1], keyParts[0]);
}
}
};

0 comments on commit bd5d6c3

Please sign in to comment.
Something went wrong with that request. Please try again.