mirror of
https://github.com/amark/gun.git
synced 2025-06-24 23:12:32 +00:00
add node filter for map
This commit is contained in:
parent
9d231755ce
commit
8cea0bc5f8
5
gun.js
5
gun.js
@ -918,6 +918,11 @@
|
|||||||
}
|
}
|
||||||
function each(val, field){
|
function each(val, field){
|
||||||
//if(!Gun.is.rel(val)){ path.call(this.gun, null, val, field);return;}
|
//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.
|
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:
|
// TODO:
|
||||||
// 1. Ability to turn off an event. // automatically happens within path since reusing is manual?
|
// 1. Ability to turn off an event. // automatically happens within path since reusing is manual?
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gun",
|
"name": "gun",
|
||||||
"version": "0.3.99",
|
"version": "0.3.991",
|
||||||
"description": "Graph engine",
|
"description": "Graph engine",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user