Commit 49ee81ca authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Fix eslint

parent b4b5ad39
...@@ -54,7 +54,8 @@ import NewNavSidebar from './new_sidebar'; ...@@ -54,7 +54,8 @@ import NewNavSidebar from './new_sidebar';
} }
$(() => { $(() => {
new NewNavSidebar(); var newNavSidebar = new NewNavSidebar();
newNavSidebar.bindEvents();
$(window).on('scroll', _.throttle(applyScrollNavClass, 100)); $(window).on('scroll', _.throttle(applyScrollNavClass, 100));
}); });
}).call(window); }).call(window);
export default class NewNavSidebar { export default class NewNavSidebar {
constructor() { constructor() {
this.initDomElements(); this.initDomElements();
this.bindEvents();
} }
initDomElements() { initDomElements() {
......
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