From 85cbf6bbbafb91637f0d02182793983a13e043d9 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Fri, 18 Mar 2011 21:52:12 +0900 Subject: [PATCH] don't set needless treestyletab-backup-flex --- content/treestyletab/treestyletabbrowser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 11063751..34586631 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -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); }