You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-16 06:42:26 +03:00
fix lint
This commit is contained in:
@@ -64,8 +64,7 @@ module.exports = React.createClass({
|
|||||||
const isVisible = this._isVisible(this.state);
|
const isVisible = this._isVisible(this.state);
|
||||||
if (this.props.onShown && !wasVisible && isVisible) {
|
if (this.props.onShown && !wasVisible && isVisible) {
|
||||||
this.props.onShown();
|
this.props.onShown();
|
||||||
}
|
} else if (this.props.onHidden && wasVisible && !isVisible) {
|
||||||
else if (this.props.onHidden && wasVisible && !isVisible) {
|
|
||||||
this.props.onHidden();
|
this.props.onHidden();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import { EventEmitter } from "events";
|
|||||||
import { throttle } from "lodash";
|
import { throttle } from "lodash";
|
||||||
|
|
||||||
export default class ResizeNotifier extends EventEmitter {
|
export default class ResizeNotifier extends EventEmitter {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
// with default options, will call fn once at first call, and then every x ms
|
// with default options, will call fn once at first call, and then every x ms
|
||||||
|
|||||||
Reference in New Issue
Block a user