commit f9449b1749110f5d7d78938c3cca7d187dc479d4 parent a200f6cfc52521b1f04427ca33af03b72807654b Author: Adomas Ven <adomas.ven@gmail.com> Date: Mon, 13 Jun 2016 11:56:39 +0300 Fixes hidden columns showing on restart. Closes #1030 (#1031) Diffstat:
| M | chrome/content/zotero/zoteroPane.js | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -4679,8 +4679,9 @@ var ZoteroPane = new function() if(!id) continue; var elValues = {}; for (let attr of el.getAttribute("zotero-persist").split(/[\s,]+/)) { - var attrValue = el.getAttribute(attr); - elValues[attr] = attrValue; + if (el.hasAttribute(attr)) { + elValues[attr] = el.getAttribute(attr); + } } serializedValues[id] = elValues; }