added clear method to encrypted storage classes
This commit is contained in:
parent
f5edb12d42
commit
a6c533673f
2 changed files with 7 additions and 0 deletions
|
|
@ -49,4 +49,8 @@ EncryptedInsightStorage.prototype.removeItem = function(name, callback) {
|
||||||
InsightStorage.prototype.removeItem.apply(this, [name, callback]);
|
InsightStorage.prototype.removeItem.apply(this, [name, callback]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
EncryptedInsightStorage.prototype.clear = function(callback) {
|
||||||
|
InsightStorage.prototype.clear.apply(this, [callback]);
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = EncryptedInsightStorage;
|
module.exports = EncryptedInsightStorage;
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,9 @@ EncryptedLocalStorage.prototype.removeItem = function(name, callback) {
|
||||||
LocalStorage.prototype.removeItem.apply(this, [name, callback]);
|
LocalStorage.prototype.removeItem.apply(this, [name, callback]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
EncryptedLocalStorage.prototype.clear = function(callback) {
|
||||||
|
LocalStorage.prototype.clear.apply(this, [callback]);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
module.exports = EncryptedLocalStorage;
|
module.exports = EncryptedLocalStorage;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue