mirror of
https://github.com/amark/gun.git
synced 2025-10-14 00:59:35 +00:00
remove back ||
That doesn't do anything
This commit is contained in:
parent
439ef82c5b
commit
2ed536baf6
2
gun.js
2
gun.js
@ -1445,7 +1445,7 @@
|
||||
Gun.chain.get = function(key, cb, as){
|
||||
//if(!as || !as.path){ var back = this._.root; } // TODO: CHANGING API! Remove this line!
|
||||
if(typeof key === 'string'){
|
||||
var gun, back = back || this, cat = back._;
|
||||
var gun, back = this, cat = back._;
|
||||
var next = cat.next || empty, tmp;
|
||||
if(!(gun = next[key])){
|
||||
gun = cache(key, back);
|
||||
|
Loading…
x
Reference in New Issue
Block a user