Commit 3833a28c authored by Mike Greiling's avatar Mike Greiling

rename event variable to just e

parent d42e7f23
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
this.renderSidebar(); this.renderSidebar();
} }
handleNewWikiSubmit(event) { handleNewWikiSubmit(e) {
if (!this.newWikiForm) return; if (!this.newWikiForm) return;
const slugInput = this.newWikiForm.querySelector('#new_wiki_path'); const slugInput = this.newWikiForm.querySelector('#new_wiki_path');
...@@ -39,12 +39,12 @@ ...@@ -39,12 +39,12 @@
if (slug.length > 0) { if (slug.length > 0) {
const wikisPath = slugInput.getAttribute('data-wikis-path'); const wikisPath = slugInput.getAttribute('data-wikis-path');
window.location.href = `${wikisPath}/${slug}`; window.location.href = `${wikisPath}/${slug}`;
event.preventDefault(); e.preventDefault();
} }
} }
handleToggleSidebar(event) { handleToggleSidebar(e) {
event.preventDefault(); e.preventDefault();
this.sidebarExpanded = !this.sidebarExpanded; this.sidebarExpanded = !this.sidebarExpanded;
this.renderSidebar(); this.renderSidebar();
} }
......
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