mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
use objects instead of arrays in serialize.js
This commit is contained in:
parent
7da8c036d7
commit
7b25756416
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue