www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 3eed76698cf442bf1fa24a057a8fe2465eff044d
parent 1f8b6fad61bc8ea0eb2e27146710d5b0d5897d5a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 13 May 2015 10:44:26 -0400

clearUserPref no longer throws on an invalid pref

Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -2323,12 +2323,7 @@ Zotero.Prefs = new function(){ this.clear = function (pref) { - try { - this.prefBranch.clearUserPref(pref); - } - catch (e) { - throw ("Invalid preference '" + pref + "'"); - } + this.prefBranch.clearUserPref(pref); }