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

pass all command actions an args object - IMPORTANT: this will possibly break

your plugin, read the NEWS file
This commit is contained in:
Doug Kearns
2008-10-17 11:39:25 +00:00
parent dba3870773
commit bec8d33e59
15 changed files with 95 additions and 29 deletions

View File

@@ -157,6 +157,8 @@ function Editor() //{{{
"Abbreviate a key sequence" + modeDescription,
function (args)
{
args = args.string;
if (!args)
{
editor.listAbbreviations(mode, "");
@@ -173,7 +175,7 @@ function Editor() //{{{
commands.add([ch ? ch + "una[bbrev]" : "una[bbreviate]"],
"Remove an abbreviation" + modeDescription,
function (args) { editor.removeAbbreviation(mode, args); });
function (args) { editor.removeAbbreviation(mode, args.string); });
commands.add([ch + "abc[lear]"],
"Remove all abbreviations" + modeDescription,