Allow to store zero and false values
This commit is contained in:
parent
253e581173
commit
b09881797a
@ -888,7 +888,7 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, {
|
|||||||
|
|
||||||
setTabValue : function TSTBase_setTabValue(aTab, aKey, aValue)
|
setTabValue : function TSTBase_setTabValue(aTab, aKey, aValue)
|
||||||
{
|
{
|
||||||
if (!aValue)
|
if (aValue === null || aValue === undefined || aValue === '')
|
||||||
return this.deleteTabValue(aTab, aKey);
|
return this.deleteTabValue(aTab, aKey);
|
||||||
|
|
||||||
aTab.setAttribute(aKey, aValue);
|
aTab.setAttribute(aKey, aValue);
|
||||||
|
@ -321,7 +321,7 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
|
|||||||
|
|
||||||
setWindowValue : function TSTWindow_setWindowValue(aKey, aValue)
|
setWindowValue : function TSTWindow_setWindowValue(aKey, aValue)
|
||||||
{
|
{
|
||||||
if (!aValue)
|
if (aValue === null || aValue === undefined || aValue === '')
|
||||||
return this.deleteWindowValue(this.window, aKey);
|
return this.deleteWindowValue(this.window, aKey);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user