mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
17 lines
443 B
JavaScript
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; });
|
|
} |