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