Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

switch window.onerror with addeventlistener? #47

@dxe4

Description

@dxe4

allows other libraries to use .onerror as well.
i think this is what jquery does:

    if ( window.addEventListener ) {
        window.addEventListener(eventname, func, false);
    } else {
        window.attachEvent(eventname, func);  // IE <=8 (not sure if event name is the same)
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions