src/util/event.js
// Unregister an event handler for the given event type.
Unregister an event handler for the given event type.
Unregister an event handler for the given event type .
off(type, handler) {
    let arr = this._handlers && this._handlers[type]
    if (arr) for (let i = 0; i < arr.length; ++i)
      if (arr[i] == handler) { arr.splice(i, 1); break }
  }
off ( type , handler ) { let arr = this . _handlers && this . _handlers [ type ] if ( arr ) for ( let i = 0 ; i < arr . length ; ++ i ) if ( arr [ i ] == handler ) { arr . splice ( i , 1 ) ; break } }
Unregister an event handler for the given event type.
Unregister an event handler for the given event type .