]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add function remove() to OC.localeStorage
authorThomas Tanghus <thomas@tanghus.net>
Mon, 10 Mar 2014 15:22:52 +0000 (16:22 +0100)
committerThomas Tanghus <thomas@tanghus.net>
Mon, 10 Mar 2014 15:22:52 +0000 (16:22 +0100)
core/js/js.js

index 77aadd23e03f59bd82da9e16fea5b400d8cd80a0..78eeceb2b0cb225a6eb72efa2969b853f6fa5f95 100644 (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) {