function up (e) {
    obj.onmouseup && obj.onmouseup(e)
    event.unbind(document, 'mousemove', move)
    event.unbind(document, 'mouseup', up)
    self.emit('up', e)
  }
function up (e) {
    obj.onmouseup && obj.onmouseup(e)
    event.unbind(document, 'mousemove', move)
    event.unbind(document, 'mouseup', up)
    self.emit('up', e)
  }
function up ( e ) { obj . onmouseup && obj . onmouseup ( e ) event . unbind ( document , 'mousemove' , move ) event . unbind ( document , 'mouseup' , up ) self . emit ( 'up' , e ) }
up
up
mouseup event handler