smell resolve

scroll-to-line-with-scroll.js
John McLear 2020-12-08 15:49:41 +00:00
parent 46805d80d6
commit 1a577d53bd
1 changed files with 4 additions and 4 deletions

View File

@ -65,10 +65,10 @@ const padeditor = (function () {
} }
} }
// Listen for clicks on sidediv items // Listen for clicks on sidediv items
$outerdoc.find('#sidedivinner').on('click', 'div', function() { $outerdoc.find('#sidedivinner').on('click', 'div', function () {
const lineNumber = $(this).index() + 1; const targetLineNumber = $(this).index() + 1;
window.location.hash = 'L' + lineNumber; window.location.hash = `L${targetLineNumber}`;
}) });
readyFunc(); readyFunc();
} }