www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d8ca9ef43847bf5c48a2ae37a14589dab01aff49
parent c078415c269ea10fd2535070b046fb6f3e25243e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  4 Aug 2011 00:00:54 +0000

Don't save "browserSupport":null when missing


Diffstat:
Mchrome/content/zotero/xpcom/schema.js | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js @@ -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);