Closed Bug 911407 Opened 12 years ago Closed 11 years ago

gcli.jsm does not export getCommands?

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: evold, Unassigned)

Details

I see a getCommand function defined in gcli.jsm and if the file is used as a commonJS module it appears that it would be exported, but as a jsm it is not exported, I expected that it would be.
Bug 984365 (should land soon) has a better way to register commands so getCommands isn't needed any more. somecommandmodule.js exports.items = [ { name: "mycommand", exec: function() { return "hi"; } } ]; gcli.addItemsByModule('somecommandmodule');
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.