From b09881797aa489dbc7f3f2c662a5b111603a22bb Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 3 Mar 2015 19:05:53 +0900 Subject: [PATCH] Allow to store zero and false values --- modules/base.js | 2 +- modules/window.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base.js b/modules/base.js index dc313af5..456385a2 100644 --- a/modules/base.js +++ b/modules/base.js @@ -888,7 +888,7 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, { setTabValue : function TSTBase_setTabValue(aTab, aKey, aValue) { - if (!aValue) + if (aValue === null || aValue === undefined || aValue === '') return this.deleteTabValue(aTab, aKey); aTab.setAttribute(aKey, aValue); diff --git a/modules/window.js b/modules/window.js index 07f05652..45b68f10 100644 --- a/modules/window.js +++ b/modules/window.js @@ -321,7 +321,7 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, { setWindowValue : function TSTWindow_setWindowValue(aKey, aValue) { - if (!aValue) + if (aValue === null || aValue === undefined || aValue === '') return this.deleteWindowValue(this.window, aKey); try {