about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/ui/components/bundle.js
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-07-07 16:57:22 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-07-08 01:57:22 +0200
commit63b77f23202a6dece419e2eb7180395b2e276b09 (patch)
treecfde074ee8cbecc3efa41ae85100f7c020b22e84 /app/javascript/mastodon/features/ui/components/bundle.js
parent8fecd8010801c17d0d086fbb27d4d9a67ccbb6af (diff)
Avoid using getBoundingClientRect to calculate height (#4001)
Diffstat (limited to 'app/javascript/mastodon/features/ui/components/bundle.js')
-rw-r--r--app/javascript/mastodon/features/ui/components/bundle.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/javascript/mastodon/features/ui/components/bundle.js b/app/javascript/mastodon/features/ui/components/bundle.js
index e69a32f47..3eed446fe 100644
--- a/app/javascript/mastodon/features/ui/components/bundle.js
+++ b/app/javascript/mastodon/features/ui/components/bundle.js
@@ -12,7 +12,6 @@ class Bundle extends React.Component {
     error: PropTypes.func,
     children: PropTypes.func.isRequired,
     renderDelay: PropTypes.number,
-    onRender: PropTypes.func,
     onFetch: PropTypes.func,
     onFetchSuccess: PropTypes.func,
     onFetchFail: PropTypes.func,
@@ -22,7 +21,6 @@ class Bundle extends React.Component {
     loading: emptyComponent,
     error: emptyComponent,
     renderDelay: 0,
-    onRender: noop,
     onFetch: noop,
     onFetchSuccess: noop,
     onFetchFail: noop,
@@ -43,10 +41,6 @@ class Bundle extends React.Component {
     }
   }
 
-  componentDidUpdate () {
-    this.props.onRender();
-  }
-
   componentWillUnmount () {
     if (this.timeout) {
       clearTimeout(this.timeout);