Fixes undefined error when clicking on page navigation links.

Fixes #873

Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
Abijeet 2018-06-03 14:24:55 +05:30
parent 86f43c8a65
commit 0363fc4ea1

View File

@ -20,7 +20,7 @@ class PageDisplay {
// Sidebar page nav click event // Sidebar page nav click event
$('.sidebar-page-nav').on('click', 'a', event => { $('.sidebar-page-nav').on('click', 'a', event => {
goToText(event.target.getAttribute('href').substr(1)); this.goToText(event.target.getAttribute('href').substr(1));
}); });
} }