```
if ( failure_condition) {
  return;
}

var index = this._event_listeners[type].indexOf(listener);
if (index != -1) this._event_listeners[type].splice(index, 1);
```