Add function remove() to OC.localeStorage

This commit is contained in:
Thomas Tanghus 2014-03-10 16:22:52 +01:00
parent 3c5185edab
commit 01bcdf5b53
1 changed files with 3 additions and 0 deletions

View File

@ -662,6 +662,9 @@ if(typeof localStorage !=='undefined' && localStorage !== null){
setItem:function(name,item){
return localStorage.setItem(OC.localStorage.namespace+name,JSON.stringify(item));
},
removeItem:function(name,item){
return localStorage.removeItem(OC.localStorage.namespace+name,JSON.stringify(item));
},
getItem:function(name){
var item = localStorage.getItem(OC.localStorage.namespace+name);
if(item===null) {