Skip to content

v1.2.0 - Add event listener info to this variable

Compare
Choose a tag to compare
@regorxxx regorxxx released this 28 Sep 20:22
· 10 commits to main since this release

Added

  • parentWindow.eventListener: added new property to 'this' within event listeners scope. It may be used to remove itself after executing it once for ex. Contains name of the callback (event) and listener id.
  • removeEventListenerSelf: shorthand to 'removeEventListener(this.eventListener.event, null, this.eventListener.id)' within event listeners scope.