1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 15:48:00 +01:00

Remove some useless return statements from Editor.

--HG--
extra : rebase_source : e0d9e68dd782ceaa3bc444333eea62a7add7e215
This commit is contained in:
Doug Kearns
2010-11-05 01:17:13 +11:00
parent c6a80bdcb3
commit 58502396a6

View File

@@ -149,7 +149,7 @@ const Editor = Module("editor", {
default: default:
dactyl.beep(); dactyl.beep();
return false; return;
} }
switch (cmd) { switch (cmd) {
@@ -169,9 +169,7 @@ const Editor = Module("editor", {
default: default:
dactyl.beep(); dactyl.beep();
return false;
} }
return true;
}, },
// This function will move/select up to given "pos" // This function will move/select up to given "pos"
@@ -355,8 +353,6 @@ const Editor = Module("editor", {
util.timeout(next, 100); util.timeout(next, 100);
})(); })();
} }
return;
}, },
/** /**
@@ -368,7 +364,7 @@ const Editor = Module("editor", {
expandAbbreviation: function (mode) { expandAbbreviation: function (mode) {
let textbox = Editor.getEditor(); let textbox = Editor.getEditor();
if (!(textbox && textbox.value)) if (!(textbox && textbox.value))
return false; return;
let text = textbox.value; let text = textbox.value;
let currStart = textbox.selectionStart; let currStart = textbox.selectionStart;
let currEnd = textbox.selectionEnd; let currEnd = textbox.selectionEnd;
@@ -381,7 +377,6 @@ const Editor = Module("editor", {
textbox.selectionStart = currStart - len + abbrText.length; textbox.selectionStart = currStart - len + abbrText.length;
textbox.selectionEnd = currEnd - len + abbrText.length; textbox.selectionEnd = currEnd - len + abbrText.length;
} }
return true;
}, },
}, { }, {
getEditor: function (elem) { getEditor: function (elem) {
@@ -439,7 +434,6 @@ const Editor = Module("editor", {
fixSelection(); fixSelection();
caretExecute(arg, false); caretExecute(arg, false);
} }
return false;
} }
mappings.add([modes.CARET], keys, "", mappings.add([modes.CARET], keys, "",