mirror of
https://github.com/amark/gun.git
synced 2025-07-04 03:42:33 +00:00
boo
This commit is contained in:
parent
2db7805485
commit
7c12cb53b5
@ -1,5 +1,5 @@
|
|||||||
{ "name": "gun"
|
{ "name": "gun"
|
||||||
, "version": "0.0.1w"
|
, "version": "0.0.1x"
|
||||||
, "author": "Mark Nadal"
|
, "author": "Mark Nadal"
|
||||||
, "description": "Graph engine."
|
, "description": "Graph engine."
|
||||||
, "engines": {
|
, "engines": {
|
||||||
|
3
shots.js
3
shots.js
@ -188,8 +188,9 @@ module.exports = require('theory')
|
|||||||
var done = function(){
|
var done = function(){
|
||||||
theory.on(a.gun.event+'.shot').emit(m.what,g);
|
theory.on(a.gun.event+'.shot').emit(m.what,g);
|
||||||
g = a.fns.is(g)? g : function(){ return a.gun.clip[where] || {} }
|
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.
|
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.when = a.num.is(a(m,'what._.#'))? m.what._['#'] : m.when;
|
||||||
m.how.gun = -(m.how.gun||1);
|
m.how.gun = -(m.how.gun||1);
|
||||||
m.what = where;
|
m.what = where;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user