fix var node for @d3x0r

This commit is contained in:
Mark Nadal 2016-10-04 19:10:01 -07:00 committed by GitHub
parent 873afd8325
commit f0a06de464

2
gun.js
View File

@ -2307,7 +2307,7 @@
}); });
server.get = function(req, cb){ server.get = function(req, cb){
var body = req.body, lex = body['$'], opt; var body = req.body, lex = body['$'], opt;
var graph = gun._.root._.graph; var graph = gun._.root._.graph, node;
if(!(node = graph[lex['#']])){ return } // Don't reply to data we don't have it in memory. TODO: Add localStorage? if(!(node = graph[lex['#']])){ return } // Don't reply to data we don't have it in memory. TODO: Add localStorage?
cb({body: { cb({body: {
'#': server.msg(), '#': server.msg(),