gun/lib/not.js
2018-07-22 09:23:13 -07:00

17 lines
443 B
JavaScript

if(typeof window !== "undefined"){
var Gun = window.Gun;
} else {
var Gun = require('../gun');
}
var u;
Gun.chain.not = function(cb, opt, t){
return this.get(ought, {not: cb});
}
function ought(at, ev){ ev.off();
if(at.err || (u !== at.put)){ return }
if(!this.not){ return }
this.not.call(at.gun, at.get, function(){ console.log("Please report this bug on https://gitter.im/amark/gun and in the issues."); need.to.implement; });
}