Skip to content

Commit 1f5a2c6

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

File tree

3 files changed

+339
-133
lines changed

3 files changed

+339
-133
lines changed

lib/framePattern.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,10 @@ FrameRule.prototype.pattern = function(){
478478
return this.rule.pattern;
479479
}
480480

481-
FrameRule.prototype.json = function(){
482-
return this.rule;
481+
FrameRule.prototype.json = function(json){
482+
if(!json) return this.rule;
483+
this.rule = json;
484+
return this;
483485
}
484486

485487
FrameRule.prototype.parent = function(parent){

0 commit comments

Comments
 (0)