Skip to content

fix destroy() to exec removeEventHandlers() even if the gutter is already gone#114

Merged
jmthomas merged 3 commits intoace-diff:masterfrom
empinator:master
May 19, 2025
Merged

fix destroy() to exec removeEventHandlers() even if the gutter is already gone#114
jmthomas merged 3 commits intoace-diff:masterfrom
empinator:master

Conversation

@empinator
Copy link
Contributor

since we are using ace-diff in a modal-panel it might happen, that the destroy() methods is trying to adjust the gutter even though it might not be present in the DOM. By adding a defensive mechanism we ensure that the removeEventListener() method is called for sure.

@jmthomas jmthomas merged commit fc92b4f into ace-diff:master May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants