Skip to content

Commit f8fc93a

Browse files
committed
Merge pull request #387 from eagletmt/expose-command-ctor
Expose Command constructor
2 parents a06afad + 45556bd commit f8fc93a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/content/commands.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,8 @@ const Commands = Module("commands", {
11871187
});
11881188

11891189
(function () {
1190+
/* Expose Command constructor for user-defined sub-commands. */
1191+
Object.defineProperty(this, "Command", { value: Command });
11901192

11911193
Commands.quoteMap = {
11921194
"\n": "n",

0 commit comments

Comments
 (0)