fix recursive relate

This commit is contained in:
Mark Nadal 2017-02-13 12:50:26 -08:00
parent 1d33a9c22b
commit c375c7c347
4 changed files with 6 additions and 4 deletions

3
gun.js
View File

@ -1162,7 +1162,8 @@
var tmp = (cat.root.get(rel)._);
if(cat.field){
coat = tmp;
} else {
} else
if(coat.field){
relate(coat, at, coat, rel);
}
if(coat === cat){ return }

2
gun.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "gun",
"version": "0.5.8",
"version": "0.5.9",
"description": "Graph engine",
"main": "index.js",
"scripts": {

View File

@ -180,7 +180,8 @@ function relate(cat, at, coat, rel){
var tmp = (cat.root.get(rel)._);
if(cat.field){
coat = tmp;
} else {
} else
if(coat.field){
relate(coat, at, coat, rel);
}
if(coat === cat){ return }