1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 02:24:12 +01:00

Utilise object destructuring in parameter lists of stray map definitions.

This commit is contained in:
Doug Kearns
2013-08-24 21:54:28 +10:00
parent acb6805646
commit e0a0388382
5 changed files with 90 additions and 90 deletions

View File

@@ -1158,15 +1158,15 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), {
// text edit mode
bind(["u"], "Undo changes",
function (args) {
editor.editor.undo(Math.max(args.count, 1));
function ({ count }) {
editor.editor.undo(Math.max(count, 1));
editor.deselect();
},
{ count: true, noTransaction: true });
bind(["<C-r>"], "Redo undone changes",
function (args) {
editor.editor.redo(Math.max(args.count, 1));
function ({ count }) {
editor.editor.redo(Math.max(count, 1));
editor.deselect();
},
{ count: true, noTransaction: true });