mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
Fix NotificationList storing jquery objects
This commit is contained in:
committed by
Franz Liedke
parent
a5b2768836
commit
29d995de45
@@ -98,7 +98,7 @@ export default class NotificationList extends Component {
|
|||||||
super.oncreate(vnode);
|
super.oncreate(vnode);
|
||||||
|
|
||||||
this.$notifications = this.$('.NotificationList-content');
|
this.$notifications = this.$('.NotificationList-content');
|
||||||
this.$scrollParent = $notifications.css('overflow') === 'auto' ? $notifications : $(window);
|
this.$scrollParent = this.$notifications.css('overflow') === 'auto' ? this.$notifications : $(window);
|
||||||
|
|
||||||
this.boundScrollHandler = this.scrollHandler.bind(this);
|
this.boundScrollHandler = this.scrollHandler.bind(this);
|
||||||
this.$scrollParent.on('scroll', this.boundScrollHandler);
|
this.$scrollParent.on('scroll', this.boundScrollHandler);
|
||||||
|
Reference in New Issue
Block a user