code: function handler ( err, data ){
        if ( callback != null ){
          callback.apply( b9, arguments );
        }
        // only emit events when there is no error
        if ( err == null ){
          b9.emit.call( b9, method, data );
        }
      }
docs: wrap callback with an event emitter