Merge pull request #7652 from owncloud/localStorage_remove

Add OC.localStorage.removeItem()
remotes/origin/ldap_group_count
Vincent Petry 11 years ago
commit a53df71b4a
  1. 3
      core/js/js.js

@ -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);
},
getItem:function(name){
var item = localStorage.getItem(OC.localStorage.namespace+name);
if(item===null) {

Loading…
Cancel
Save