1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-17 08:43:31 +01:00

Fix some functions that used to use args.string.

This commit is contained in:
Kris Maglione
2010-09-29 13:21:01 -04:00
parent 47f5b5e9d9
commit f7b99e9272
9 changed files with 25 additions and 25 deletions

View File

@@ -230,8 +230,8 @@ const Abbreviations = Module("abbreviations", {
commands.add([ch ? ch + "a[bbrev]" : "ab[breviate]"],
"Abbreviate a key sequence" + modeDescription,
function (args) {
let [,, lhs,, rhs] = splitAbbrev(args[0]);
dactyl.assert(lhs, "E474: Invalid argument");
let [,, lhs,, rhs] = splitAbbrev(args[0] || "");
dactyl.assert(lhs != null, "E474: Invalid argument");
if (rhs) {
if (args["-javascript"]) {