1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 12:17:58 +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:
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, "",