mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
DEV: Ensure scrolling-post-stream event listeners are removed correctly (#15115)
The method was switched from _debouncedScrollCallback to _debouncedScroll in ff72522f
, but the cleanup was not updated to match.
This commit is contained in:
parent
1b184cefd0
commit
136189508b
@ -365,8 +365,8 @@ export default MountWidget.extend({
|
||||
|
||||
willDestroyElement() {
|
||||
this._super(...arguments);
|
||||
document.removeEventListener("touchmove", this._debouncedScrollCallback);
|
||||
window.removeEventListener("scroll", this._debouncedScrollCallback);
|
||||
document.removeEventListener("touchmove", this._debouncedScroll);
|
||||
window.removeEventListener("scroll", this._debouncedScroll);
|
||||
this.appEvents.off("post-stream:refresh", this, "_debouncedScroll");
|
||||
$(this.element).off("mouseenter.post-stream");
|
||||
$(this.element).off("mouseleave.post-stream");
|
||||
|
Loading…
Reference in New Issue
Block a user