-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cursor plugin: fix element removal in destroy #2462
Conversation
When the plugin destroy() method was called, I got an error because removeChild was called with something that wasn't a Node, for this.showTime and this.cursor. It seems that these members are Proxy objects, and the removeChild doesn't swallow that. Changing from removeChild to remove() on the Proxy objects seems to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @JanMisker Can you also add a changelog entry (for new 6.0.3) with a reference to #2460?
Check, added an entry in the changelog. |
now there's a merge conflict, probably in changelog |
I can't really resolve that change I think, but adjusted CHANGES.md to be just the addition of 'my line'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks.
Thanks @JanMisker, much appreciated! |
When the plugin
destroy(
) method get called, I got an error becauseremoveChild()
was called with something that wasn't aNode
, forthis.showTime
andthis.cursor
.Short description of changes:
It seems that
showTime
andcursor
areProxy
objects, and theremoveChild()
doesn't swallow that. Changing from e.g.removeChild(this.cursor)
tothis.cursor.remove()
on the Proxy objects seems to fix this.Breaking in the external API:
n/a
Breaking changes in the internal API:
n/a
Todos/Notes:
n/a
Related Issues and other PRs:
fixes #2460