not.js 443 B

1234567891011121314151617
  1. if(typeof window !== "undefined"){
  2. var Gun = window.Gun;
  3. } else {
  4. var Gun = require('../gun');
  5. }
  6. var u;
  7. Gun.chain.not = function(cb, opt, t){
  8. return this.get(ought, {not: cb});
  9. }
  10. function ought(at, ev){ ev.off();
  11. if(at.err || (u !== at.put)){ return }
  12. if(!this.not){ return }
  13. 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; });
  14. }