1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 06:57:59 +01:00

Move Map's property definitions outside init.

--HG--
extra : rebase_source : 6ab30f7e512283852024f2de6abc69f203f5e8d3
This commit is contained in:
Doug Kearns
2009-11-16 23:45:11 +11:00
parent bda2e685f8
commit 230490db05
2 changed files with 40 additions and 33 deletions

View File

@@ -45,7 +45,7 @@ const Command = Class("Command", {
extraInfo = {};
this.specs = specs;
this.shortNames = expandedSpecs.map(function (n) n[1]);
this.shortNames = array(expandedSpecs).map(function (n) n[1]).compact();
this.longNames = expandedSpecs.map(function (n) n[0]);
this.name = this.longNames[0];
this.names = array(expandedSpecs).flatten();