Top Menu

Jump to content
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    Home
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      OpenProject ID Google

Side Menu

Collapse project menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • Wiki
    Wiki
  • News

Content

Expand project menu

Updated by Kabiru Mwenja 8 days ago

[AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) is a browser API that lets you manage the lifecycle of event listeners and other asynchronous operations. You create an AbortController, pass its signal to addEventListener, and later call abort() to remove all listeners attached with that signal.

Example:

```js
const controller = new AbortController();
window.addEventListener('beforeunload', handler, { signal: controller.signal });

// Later, to remove the listener:
controller.abort(); // All listeners attached with this signal are removed
```

Follows improvements seen in https://github.com/opf/openproject/pull/19442 😇

Back

Loading...