opera.extension.removeEventListener()

By Opera Software

Description:

Removes an existing listener from an event.

Parameters:

  • type: The type of event.
  • listener : The object that the listener was attached to.
  • useCapture: Which phase the listener was assigned to.

Syntax:

void removeEventListener (<DOMString> type, <EventListener> listener, UseCapture)

Example:

var myFunc = function() {
  return someValue;
};
opera.extension.removeEventListener('onmessage', myFunc, false);

This article is licensed under a Creative Commons Attribution 3.0 Unported license.

Comments

No new comments accepted.