This commit is contained in:
theory 2014-03-31 10:22:04 -06:00
parent 2db7805485
commit 7c12cb53b5
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{ "name": "gun"
, "version": "0.0.1w"
, "version": "0.0.1x"
, "author": "Mark Nadal"
, "description": "Graph engine."
, "engines": {

View File

@ -188,8 +188,9 @@ module.exports = require('theory')
var done = function(){
theory.on(a.gun.event+'.shot').emit(m.what,g);
g = a.fns.is(g)? g : function(){ return a.gun.clip[where] || {} }
console.log("updated:", g());
store.set(where, g(), null, function(){ // TODO: Only save to S3 if there is a change in data after HAM.
if(opt.src && opt.src.reply){
if(opt.src && opt.src.reply && !m.where.mid){
m.when = a.num.is(a(m,'what._.#'))? m.what._['#'] : m.when;
m.how.gun = -(m.how.gun||1);
m.what = where;