mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Check Gun.path for null value before calling a method on it, fix #108
This commit is contained in:
parent
fc27af870d
commit
d7605f2a76
2
gun.js
2
gun.js
@ -481,7 +481,7 @@
|
||||
var gun = this.chain();
|
||||
cb = cb || function(){};
|
||||
opt = opt || {};
|
||||
if((path !== null && !path) || !Gun.text.is(path = path.join? path.join('.') : path + '')){ return }
|
||||
if((path !== null && !path) || path === null || !Gun.text.is(path = path.join? path.join('.') : path + '')){ return }
|
||||
if(!gun.back._.at){ return cb.call(gun, {err: Gun.log("No context!")}), gun }
|
||||
|
||||
gun.back.on(function($, node){
|
||||
|
Loading…
x
Reference in New Issue
Block a user