diff --git a/chrome/content/zotero/xpcom/rdf/identity.js b/chrome/content/zotero/xpcom/rdf/identity.js index da3b3ead2..f2c803200 100644 --- a/chrome/content/zotero/xpcom/rdf/identity.js +++ b/chrome/content/zotero/xpcom/rdf/identity.js @@ -119,7 +119,7 @@ $rdf.IndexedFormula.prototype.newPropertyAction = function newPropertyAction(pre this.propertyActions[hash].push(action); // Now apply the function to to statements already in the store var toBeFixed = this.statementsMatching(undefined, pred, undefined); - done = false; + var done = false; for (var i=0; i', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type': 'a' @@ -288,7 +288,7 @@ __Serializer.prototype.statementsToN3 = function(sts) { return s } - treeToLine = function(tree) { + var treeToLine = function(tree) { var str = ''; for (var i=0; i.\n'; for (var ns in namespaceCounts) { @@ -563,7 +563,7 @@ function hexify(str) { // also used in parser function backslashUify(str) { - var res = ''; + var res = '', k; for (var i=0; i65535) @@ -599,7 +599,7 @@ __Serializer.prototype.statementsToXML = function(sts) { return s } - XMLtreeToLine = function(tree) { + var XMLtreeToLine = function(tree) { var str = ''; for (var i=0; i"]); } function collectionXMLTree(subject, stats) { - res = [] + var res = [] for (var i=0; i< subject.elements.length; i++) { res.push(subjectXMLTree(subject.elements[i], stats)); } diff --git a/chrome/content/zotero/xpcom/rdf/term.js b/chrome/content/zotero/xpcom/rdf/term.js index cced406dd..4f7d1b2ae 100644 --- a/chrome/content/zotero/xpcom/rdf/term.js +++ b/chrome/content/zotero/xpcom/rdf/term.js @@ -246,7 +246,7 @@ $rdf.Formula.prototype.collection = function () { // obsolete } $rdf.Formula.prototype.list = function (values) { - li = new $rdf.Collection(); + var li = new $rdf.Collection(); if (values) { for(var i = 0; i