Skip to content

Not working if listener is defined after first event firing #9

Description

@mu3
// Simulate some frequent event like DOMNodeInserted
setInterval(function() {
    box.trigger('frequentEvent')
}, 500); // not working if this is lower than a delay

box.on("frequentEvent", function() {
    $(this).append('fire ')
}, 300); // works without this delay

Here's a pen

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