diff --git a/gun.js b/gun.js index 9611e229..618064ff 100644 --- a/gun.js +++ b/gun.js @@ -918,6 +918,11 @@ } function each(val, field){ //if(!Gun.is.rel(val)){ path.call(this.gun, null, val, field);return;} + if(opt.node){ + if(!Gun.is.rel(val)){ + return; + } + } cb.hash[this.soul + field] = cb.hash[this.soul + field] || this.gun.path(field, path, {chain: chain, via: 'map'}); // TODO: path should reuse itself! We shouldn't have to do it ourselves. // TODO: // 1. Ability to turn off an event. // automatically happens within path since reusing is manual? diff --git a/package.json b/package.json index e844e0c1..089150b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gun", - "version": "0.3.99", + "version": "0.3.991", "description": "Graph engine", "main": "index.js", "scripts": {