don't set needless treestyletab-backup-flex

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-03-18 21:52:12 +09:00
parent 7cd0d20f50
commit 85cbf6bbba

View File

@ -954,7 +954,8 @@ TreeStyleTabBrowser.prototype = {
Array.forEach(strip.childNodes, function(aNode) {
if (aNode.localName == 'tabs')
return;
aNode.setAttribute('treestyletab-backup-flex', aNode.getAttribute('flex'));
if (aNode.hasAttribute('flex'))
aNode.setAttribute('treestyletab-backup-flex', aNode.getAttribute('flex'));
aNode.removeAttribute('flex');
}, this);
}