From 52772aecd65e332fa94f4bd4cb3d8f545d456047 Mon Sep 17 00:00:00 2001 From: jim Date: Wed, 28 Mar 2018 14:35:38 +0800 Subject: [PATCH] fix #1188 @Debounce no use arrow function --- src/components/GlobalHeader/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/GlobalHeader/index.js b/src/components/GlobalHeader/index.js index 3e91ee21..559b876d 100644 --- a/src/components/GlobalHeader/index.js +++ b/src/components/GlobalHeader/index.js @@ -48,12 +48,13 @@ export default class GlobalHeader extends PureComponent { onCollapse(!collapsed); this.triggerResizeEvent(); }; + /* eslint-disable*/ @Debounce(600) - triggerResizeEvent = () => { + triggerResizeEvent() { const event = document.createEvent('HTMLEvents'); event.initEvent('resize', true, false); window.dispatchEvent(event); - }; + } render() { const { currentUser, -- GitLab