Commit 52772aec authored by jim's avatar jim

fix #1188 @Debounce no use arrow function

parent 774f8d43
...@@ -48,12 +48,13 @@ export default class GlobalHeader extends PureComponent { ...@@ -48,12 +48,13 @@ export default class GlobalHeader extends PureComponent {
onCollapse(!collapsed); onCollapse(!collapsed);
this.triggerResizeEvent(); this.triggerResizeEvent();
}; };
/* eslint-disable*/
@Debounce(600) @Debounce(600)
triggerResizeEvent = () => { triggerResizeEvent() {
const event = document.createEvent('HTMLEvents'); const event = document.createEvent('HTMLEvents');
event.initEvent('resize', true, false); event.initEvent('resize', true, false);
window.dispatchEvent(event); window.dispatchEvent(event);
}; }
render() { render() {
const { const {
currentUser, currentUser,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment