Fixes hidden columns showing on restart. Closes #1030 (#1031)

This commit is contained in:
Adomas Ven 2016-06-13 11:56:39 +03:00 committed by Dan Stillman
parent a200f6cfc5
commit f9449b1749

View file

@ -4679,8 +4679,9 @@ var ZoteroPane = new function()
if(!id) continue; if(!id) continue;
var elValues = {}; var elValues = {};
for (let attr of el.getAttribute("zotero-persist").split(/[\s,]+/)) { for (let attr of el.getAttribute("zotero-persist").split(/[\s,]+/)) {
var attrValue = el.getAttribute(attr); if (el.hasAttribute(attr)) {
elValues[attr] = attrValue; elValues[attr] = el.getAttribute(attr);
}
} }
serializedValues[id] = elValues; serializedValues[id] = elValues;
} }