mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
correct input layout
This commit is contained in:
parent
03ca138efd
commit
34c12a537d
4
gun.js
4
gun.js
@ -2028,7 +2028,7 @@
|
||||
function get(at){
|
||||
this.to.next(at);
|
||||
var gun = at.gun, lex = at.get, soul, data, opt, u;
|
||||
setTimeout(function(){
|
||||
//setTimeout(function(){
|
||||
(opt = at.opt || {}).prefix = opt.prefix || at.gun.back('opt.prefix') || 'gun/';
|
||||
if(!lex || !(soul = lex[Gun._.soul])){ return }
|
||||
data = Gun.obj.ify(store.getItem(opt.prefix + soul) || null);
|
||||
@ -2041,7 +2041,7 @@
|
||||
if(Gun.obj.has(lex, '.')){var tmp = data[lex['.']];data = {_: data._};if(u !== tmp){data[lex['.']] = tmp}}
|
||||
//console.log('@@@@@@@@@@@@local get', data, at);
|
||||
gun.back(-1).on('in', {'@': at['#'], put: Gun.graph.node(data)});
|
||||
},11);
|
||||
//},11);
|
||||
}
|
||||
Gun.on('put', put);
|
||||
Gun.on('get', get);
|
||||
|
Loading…
x
Reference in New Issue
Block a user