From 58502396a686aed4ab64349e33ebae0389bf6b69 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 5 Nov 2010 01:17:13 +1100 Subject: [PATCH] Remove some useless return statements from Editor. --HG-- extra : rebase_source : e0d9e68dd782ceaa3bc444333eea62a7add7e215 --- common/content/editor.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/common/content/editor.js b/common/content/editor.js index 86932885..ca3dfb20 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -149,7 +149,7 @@ const Editor = Module("editor", { default: dactyl.beep(); - return false; + return; } switch (cmd) { @@ -169,9 +169,7 @@ const Editor = Module("editor", { default: dactyl.beep(); - return false; } - return true; }, // This function will move/select up to given "pos" @@ -355,8 +353,6 @@ const Editor = Module("editor", { util.timeout(next, 100); })(); } - - return; }, /** @@ -368,7 +364,7 @@ const Editor = Module("editor", { expandAbbreviation: function (mode) { let textbox = Editor.getEditor(); if (!(textbox && textbox.value)) - return false; + return; let text = textbox.value; let currStart = textbox.selectionStart; let currEnd = textbox.selectionEnd; @@ -381,7 +377,6 @@ const Editor = Module("editor", { textbox.selectionStart = currStart - len + abbrText.length; textbox.selectionEnd = currEnd - len + abbrText.length; } - return true; }, }, { getEditor: function (elem) { @@ -439,7 +434,6 @@ const Editor = Module("editor", { fixSelection(); caretExecute(arg, false); } - return false; } mappings.add([modes.CARET], keys, "",