added clear method to encrypted storage classes

This commit is contained in:
Ivan Socolsky 2014-12-10 12:03:00 -03:00
commit a6c533673f
2 changed files with 7 additions and 0 deletions

View file

@ -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;

View file

@ -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;