Skip to content

Commit e4031bb

Browse files
fixed minor bug in document render
1 parent 3ae5f47 commit e4031bb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/viewer/documentFrame.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,11 @@ DocumentFrame.prototype.loadData = function(jsonld, cls, classframes){
8383
}
8484
if(cls){
8585
if(!this.document){
86-
alert("Yo")
8786
this.document = new ObjectFrame(cls, jsonld, classframes);
8887
}
8988
else {
90-
alert("Yo2")
9189
this.document.loadJSONLDDocument(jsonld);
9290
}
93-
alert(this.document.subjid)
9491
}
9592
else {
9693
console.log("Missing Class" + " " + "Failed to add dataframes due to missing class");

lib/viewer/objectFrame.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,11 @@ ObjectFrame.prototype.addProperty = function (prop, cls) {
397397
nprop.addValueFrame(ndata);
398398
}
399399
if (typeof this.properties[prop] === 'undefined') {
400-
this.properties[prop] = [];
400+
this.properties[prop] = nprop;
401401
}
402-
this.properties[prop].push(nprop);
402+
else {
403+
//this.properties[prop].push(nprop);
404+
}
403405
return nprop;
404406
}
405407
return false;

0 commit comments

Comments
 (0)