When "treeViewEnabled" was set to false twice, twisties in tabs were lost. ( https://github.com/piroor/treestyletab/issues/160 )

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-10-30 03:10:53 +09:00
parent 2e28ffe4c2
commit 785666ccf7

View File

@ -4140,7 +4140,11 @@ TreeStyleTabBrowser.prototype = {
},
set treeViewEnabled(aValue)
{
this._treeViewEnabled = !!aValue;
var newValue = !!aValue;
if (newValue == this._treeViewEnabled)
return aValue;
this._treeViewEnabled = newValue;
if (this._treeViewEnabled) {
if (this._lastAllowSubtreeCollapseExpand)
this.allowSubtreeCollapseExpand = true;