Browse Source

Revert #3851 (#3878)

pull/4/head
Eugen Rochko 4 years ago
committed by GitHub
parent
commit
946a166791
2 changed files with 0 additions and 15 deletions
  1. +0
    -8
      app/javascript/mastodon/components/status.js
  2. +0
    -7
      app/javascript/mastodon/features/ui/util/intersection_observer_wrapper.js

+ 0
- 8
app/javascript/mastodon/components/status.js View File

@ -91,14 +91,6 @@ class Status extends ImmutablePureComponent {
}
componentWillUnmount () {
if (!this.props.intersectionObserverWrapper) {
// TODO: enable IntersectionObserver optimization for notification statuses.
// These are managed in notifications/index.js rather than status_list.js
return;
}
this.props.intersectionObserverWrapper.unobserve(this.props.id, this.node);
this.componentMounted = false;
}

+ 0
- 7
app/javascript/mastodon/features/ui/util/intersection_observer_wrapper.js View File

@ -37,13 +37,6 @@ class IntersectionObserverWrapper {
}
}
unobserve (id, node) {
if (this.observer) {
delete this.callbacks[id];
this.observer.unobserve(node);
}
}
disconnect () {
if (this.observer) {
this.observer.disconnect();

Loading…
Cancel
Save