mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-27 12:25:47 +01:00
Normalise command/option/mapping config object param name.
s/extraInfo/extra/
This commit is contained in:
@@ -833,7 +833,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), {
|
||||
|
||||
// add mappings for commands like h,j,k,l,etc. in CARET, VISUAL and TEXT_EDIT mode
|
||||
function addMovementMap(keys, description, hasCount, caretModeMethod, caretModeArg, textEditCommand, visualTextEditCommand) {
|
||||
let extraInfo = {
|
||||
let extra = {
|
||||
count: !!hasCount,
|
||||
type: "operator"
|
||||
};
|
||||
@@ -872,7 +872,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), {
|
||||
}
|
||||
}
|
||||
},
|
||||
extraInfo);
|
||||
extra);
|
||||
|
||||
mappings.add([modes.CARET, modes.TEXT_EDIT, modes.OPERATOR], keys, description,
|
||||
function ({ count }) {
|
||||
@@ -885,7 +885,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), {
|
||||
caretExecute(false);
|
||||
}
|
||||
},
|
||||
extraInfo);
|
||||
extra);
|
||||
}
|
||||
|
||||
// add mappings for commands like i,a,s,c,etc. in TEXT_EDIT mode
|
||||
|
||||
@@ -439,7 +439,7 @@ var Mappings = Module("mappings", {
|
||||
* @param {string} description A description of the key mapping.
|
||||
* @param {function} action The action invoked by each key sequence.
|
||||
* @param {Object} extra An optional extra configuration hash (see
|
||||
* {@link Map#extraInfo}).
|
||||
* {@link Map#extra}).
|
||||
* @optional
|
||||
*/
|
||||
addUserMap: deprecated("group.mappings.add", function addUserMap() {
|
||||
|
||||
Reference in New Issue
Block a user