commit 7b257564164134173c2bff733072355bcf8fe1d5
parent 7da8c036d7eb8f9537e864abf053c9d5debd0833
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 24 Jun 2009 22:05:34 +0000
use objects instead of arrays in serialize.js
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/xpcom/rdf/serialize.js b/chrome/content/zotero/xpcom/rdf/serialize.js
@@ -111,8 +111,8 @@ __Serializer.prototype.makeUpPrefix = function(uri) {
// - do stuff about the docu first and then (or first) about its primary topic.
__Serializer.prototype.rootSubjects = function(sts) {
- var incoming = [];
- var subjects = [];
+ var incoming = {};
+ var subjects = {};
var sz = this;
for (var i = 0; i<sts.length; i++) {
@@ -127,7 +127,7 @@ __Serializer.prototype.rootSubjects = function(sts) {
}
var roots = [];
- var loopBreakers = [];
+ var loopBreakers = {};
function accountedFor(x, start) {
if (x.termType != 'bnode') return true; // will be subject