In "destroy" method, if user has two or more ace-diff elements, the "removeEventHandlers" only remove the last "onResize" handler. · Issue #64 · ace-diff/ace-diff · GitHub
Skip to content

In "destroy" method, if user has two or more ace-diff elements, the "removeEventHandlers" only remove the last "onResize" handler. #64

Description

@Weiee

the "addEventHandlers" function is not in AceDiff scope, when call window.removeEventListener, 'onResize' eventhandler is actually hold by the "addEventHandlers" scope.
image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions