pad_editor: Unexport unnecessarily exported focusOnLine()

This commit is contained in:
Richard Hansen 2021-04-04 02:21:17 -04:00
parent e22639edac
commit f70f3197b6

View file

@ -47,7 +47,7 @@ const padeditor = (() => {
const targetLineNumber = $(this).index() + 1; const targetLineNumber = $(this).index() + 1;
window.location.hash = `L${targetLineNumber}`; window.location.hash = `L${targetLineNumber}`;
}); });
exports.focusOnLine(self.ace); focusOnLine(self.ace);
self.ace.setProperty('wraps', true); self.ace.setProperty('wraps', true);
self.initViewOptions(); self.initViewOptions();
self.setViewOptions(initialViewOptions); self.setViewOptions(initialViewOptions);
@ -162,7 +162,7 @@ const padeditor = (() => {
exports.padeditor = padeditor; exports.padeditor = padeditor;
exports.focusOnLine = (ace) => { const focusOnLine = (ace) => {
// If a number is in the URI IE #L124 go to that line number // If a number is in the URI IE #L124 go to that line number
const lineNumber = window.location.hash.substr(1); const lineNumber = window.location.hash.substr(1);
if (!lineNumber || lineNumber[0] !== 'L') return; if (!lineNumber || lineNumber[0] !== 'L') return;