Skip to content

Commit 50212f9

Browse files
committed
Merge branch 'dev' of https://github.com/terminusdb/terminus-client into dev
2 parents 4c3e184 + 8d9a9d6 commit 50212f9

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

lib/viewer/documentFrame.js

Lines changed: 2 additions & 5 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");
@@ -130,7 +127,7 @@ DocumentFrame.prototype.filterFrame = function(loadRenderer){
130127
if(typeof rule.render() != "undefined"){
131128
frame.render = rule.render();
132129
}
133-
else {
130+
/* else {
134131
if(rule.renderer()){
135132
var renderer = loadRenderer(rule.renderer(), frame, rule.args);
136133
}
@@ -139,7 +136,7 @@ DocumentFrame.prototype.filterFrame = function(loadRenderer){
139136
return renderer(fframe);
140137
}
141138
}
142-
}
139+
}*/
143140
if(rule.compare()){
144141
frame.compare = rule.compare();
145142
}

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)