Skip to content

Commit 5d6066c

Browse files
committed
Merge branch 'dev' of https://github.com/terminusdb/terminus-client into dev
2 parents c11dd0f + 8d7b7df commit 5d6066c

File tree

4 files changed

+1134
-554
lines changed

4 files changed

+1134
-554
lines changed

lib/framePattern.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,11 @@ FrameRule.prototype.pattern = function () {
474474
return this.rule.pattern;
475475
};
476476

477-
FrameRule.prototype.json = function () {
478-
return this.rule;
479-
};
477+
FrameRule.prototype.json = function(json){
478+
if(!json) return this.rule;
479+
this.rule = json;
480+
return this;
481+
}
480482

481483
FrameRule.prototype.parent = function(parent){
482484
if(typeof parent == "undefined") return this.rule.pattern.parent;

0 commit comments

Comments
 (0)