Skip to content

Listening events via addEventsListener #113

@OlegAndreych

Description

@OlegAndreych

Looking through the code I've stumbled upon constructs like:

// when tab is above to close
window.onbeforeunload = function() {
     jsflight.stopTimers();

MDN states, that such events should be processed via addEventsListener method rather than function assignment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions