updated user preferences and tests

This commit is contained in:
Stanimir Karoserov
2014-05-12 19:00:45 +03:00
parent cf3b358947
commit d7fda0b91c
6 changed files with 160 additions and 18 deletions

View File

@@ -58,6 +58,13 @@ export var setNumber = function(key: string, value: number): void {
editor.commit();
}
export var remove = function (key: string): void {
Common.checkKey(key);
var editor = sharedPreferences.edit();
editor.remove(key);
editor.commit();
}
/*
these are commented out to be used only if requested by users or otherwise needed