src/post/index.js
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 );
      }
    }
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 );
      }
    }
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 ) ; } }
wrap callback with an event emitter
wrap callback with an event emitter