mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 04:27:59 +01:00
Make further use of default parameters.
--HG-- extra : rebase_source : ab666bce7ed7e47c8f1e2bc4145f553da990d319
This commit is contained in:
@@ -12,11 +12,9 @@
|
||||
var HintSession = Class("HintSession", CommandMode, {
|
||||
get extendedMode() modes.HINTS,
|
||||
|
||||
init: function init(mode, opts) {
|
||||
init: function init(mode, opts = {}) {
|
||||
init.supercall(this);
|
||||
|
||||
opts = opts || {};
|
||||
|
||||
if (!opts.window)
|
||||
opts.window = modes.getStack(0).params.window;
|
||||
|
||||
@@ -1056,11 +1054,9 @@ var Hints = Module("hints", {
|
||||
return null;
|
||||
}, //}}}
|
||||
|
||||
open: function open(mode, opts) {
|
||||
open: function open(mode, opts = {}) {
|
||||
this._extendedhintCount = opts.count;
|
||||
|
||||
opts = opts || {};
|
||||
|
||||
mappings.pushCommand();
|
||||
commandline.input(["Normal", mode], null, {
|
||||
autocomplete: false,
|
||||
|
||||
Reference in New Issue
Block a user