Don't save "browserSupport":null when missing

This commit is contained in:
Dan Stillman 2011-08-04 00:00:54 +00:00
parent c078415c26
commit d8ca9ef438

View file

@ -1486,10 +1486,14 @@ Zotero.Schema = new function(){
priority: parseInt(
xmlnode.getElementsByTagName('priority')[0].firstChild.nodeValue
),
browserSupport: xmlnode.getAttribute('browserSupport'),
inRepository: true,
};
var browserSupport = xmlnode.getAttribute('browserSupport');
if (browserSupport) {
metadata.browserSupport = browserSupport;
}
for each(var attr in ["configOptions", "displayOptions"]) {
try {
var tags = xmlnode.getElementsByTagName(attr);