Pass prevWidget to widget.updateDOM #69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/pass-prev-widget-in-update-dom"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In some scenarios, I would like to remove the previous event listener in
widget.updateDOM, but missing the reference to previous listener inwidget.updateDOM.For exaxmple:
This PR pass
prevWidgettowidget.updateDOMto solve this.This seems easy enough to sidestep by using an
onclickproperty instead of a listener added withaddEventListener. I don't really think it is a compelling enough case to complicate the interface.Using onclick does help solve my problem. And I cannot come up with some more convincing scenario at present. I will close this PR for now. Thanks for reviewing this marijnh.
Pull request closed