diff options
author | Paul Slaughter <pslaughter@gitlab.com> | 2019-01-16 01:26:29 +0300 |
---|---|---|
committer | Paul Slaughter <pslaughter@gitlab.com> | 2019-01-16 01:26:29 +0300 |
commit | 9cb8ba63d8af7deba38a7bef4f936f1e2898c485 (patch) | |
tree | 6a63ef715618681d8d786a27e1335b8211971ef2 /app/assets/javascripts/contextual_sidebar.js | |
parent | d9e4e3f79661c01ea1f0dc30326ffae361228134 (diff) |
Fix contextual_sidebar function binding
Diffstat (limited to 'app/assets/javascripts/contextual_sidebar.js')
-rw-r--r-- | app/assets/javascripts/contextual_sidebar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/contextual_sidebar.js b/app/assets/javascripts/contextual_sidebar.js index 42c3542b50b..50efecb3475 100644 --- a/app/assets/javascripts/contextual_sidebar.js +++ b/app/assets/javascripts/contextual_sidebar.js @@ -70,7 +70,7 @@ export default class ContextualSidebar { ContextualSidebar.setCollapsedCookie(collapsed); } - requestIdleCallback(this.toggleSidebarOverflow); + requestIdleCallback(() => this.toggleSidebarOverflow()); } toggleSidebarOverflow() { |