Allow to store zero and false values

This commit is contained in:
YUKI Hiroshi 2015-03-03 19:05:53 +09:00
parent 253e581173
commit b09881797a
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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 {