From a65266566ae19ac3a6ba70064bea81b41ad7ca92 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 10 Dec 2023 16:53:46 +0300 Subject: [PATCH] ... Signed-off-by: Alex A. Naanou --- experiments/outline-editor/editor.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 86b6289..08b31c0 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -191,14 +191,12 @@ var getMarkdownOffset = function(markdown, text, i){ return map[i] } //*/ -/* XXX this is not needed... var getText = function(elem, res=[]){ for(var n of elem.childNodes){ n.nodeType == n.TEXT_NODE ? res.push(n.textContent) : getText(n, res) } return res } -//*/ var offsetAt = function(A, B, i){ i ??= A.length-1