lib/bear.js
function() {
    var bear = this;
    // don't bind until we're ready
    var srv = bear.ready.then( function() {
      var dfd = _.Deferred();
      // only make once
      if ( !bear.githInstance ) {
        bear.githInstance = bear.gith({
          repo: bear.settings.repo,
        }).on( 'all', bear._processPayload.bind( bear ) );
      }
      dfd.resolve( bear.githInstance );
      return dfd.promise();
    });

    return srv;
  }
function() {
    var bear = this;
    // don't bind until we're ready
    var srv = bear.ready.then( function() {
      var dfd = _.Deferred();
      // only make once
      if ( !bear.githInstance ) {
        bear.githInstance = bear.gith({
          repo: bear.settings.repo,
        }).on( 'all', bear._processPayload.bind( bear ) );
      }
      dfd.resolve( bear.githInstance );
      return dfd.promise();
    });

    return srv;
  }
function ( ) { var bear = this ; // don't bind until we're ready var srv = bear . ready . then ( function ( ) { var dfd = _ . Deferred ( ) ; // only make once if ( ! bear . githInstance ) { bear . githInstance = bear . gith ( { repo : bear . settings . repo , } ) . on ( 'all' , bear . _processPayload . bind ( bear ) ) ; } dfd . resolve ( bear . githInstance ) ; return dfd . promise ( ) ; } ) ; return srv ; }
but this is where the gold is
but this is where the gold is