summaryrefslogtreecommitdiffstats
path: root/devtools/shared/gcli
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 13:57:10 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 13:57:10 +0100
commit0535b0bb38dacf7dab31fd757a91ca9928292693 (patch)
treed1a41ca6d45d40c8ccaded4a2868b527fe029895 /devtools/shared/gcli
parentcaebf13372415e59bd36c49fbee934e25ec46a32 (diff)
downloadUXP-0535b0bb38dacf7dab31fd757a91ca9928292693.tar
UXP-0535b0bb38dacf7dab31fd757a91ca9928292693.tar.gz
UXP-0535b0bb38dacf7dab31fd757a91ca9928292693.tar.lz
UXP-0535b0bb38dacf7dab31fd757a91ca9928292693.tar.xz
UXP-0535b0bb38dacf7dab31fd757a91ca9928292693.zip
Fix "help cmd" and "cmd refresh" in the Developer Toolbar
https://github.com/MoonchildProductions/moebius/pull/348
Diffstat (limited to 'devtools/shared/gcli')
-rw-r--r--devtools/shared/gcli/commands/cmd.js4
-rw-r--r--devtools/shared/gcli/source/lib/gcli/commands/help.js4
2 files changed, 2 insertions, 6 deletions
diff --git a/devtools/shared/gcli/commands/cmd.js b/devtools/shared/gcli/commands/cmd.js
index 1777ed960..1b3cb2ecb 100644
--- a/devtools/shared/gcli/commands/cmd.js
+++ b/devtools/shared/gcli/commands/cmd.js
@@ -137,8 +137,6 @@ exports.items = [
return !prefBranch.prefHasUserValue(PREF_DIR);
},
exec: function(args, context) {
- gcli.load();
-
let dirName = prefBranch.getComplexValue(PREF_DIR,
Ci.nsISupportsString).data.trim();
return l10n.lookupFormat("cmdStatus3", [ dirName ]);
@@ -170,8 +168,6 @@ exports.items = [
supportsString.data = args.directory;
prefBranch.setComplexValue(PREF_DIR, Ci.nsISupportsString, supportsString);
- gcli.load();
-
return l10n.lookupFormat("cmdStatus3", [ args.directory ]);
}
}
diff --git a/devtools/shared/gcli/source/lib/gcli/commands/help.js b/devtools/shared/gcli/source/lib/gcli/commands/help.js
index 7d1cc9087..365c53380 100644
--- a/devtools/shared/gcli/source/lib/gcli/commands/help.js
+++ b/devtools/shared/gcli/source/lib/gcli/commands/help.js
@@ -275,7 +275,7 @@ exports.items = [
' <div if="${command.isParent}">\n' +
' <p class="gcli-help-header">${l10n.subCommands}:</p>\n' +
' <ul class="gcli-help-${subcommands}">\n' +
- ' <li if="${subcommands.length === 0}">${l10n.subcommandsNone}</li>\n' +
+ ' <li if="${subcommands.length === 0}">${l10n.subCommandsNone}</li>\n' +
' <li foreach="subcommand in ${subcommands}">\n' +
' ${subcommand.name}: ${subcommand.description}\n' +
' <span class="gcli-out-shortcut" data-command="help ${subcommand.name}"\n' +
@@ -321,7 +321,7 @@ exports.items = [
'\n' +
'<span if="${command.isParent}"># ${l10n.subCommands}:</span>\n' +
'\n' +
- '<span if="${subcommands.length === 0}">${l10n.subcommandsNone}</span>\n' +
+ '<span if="${subcommands.length === 0}">${l10n.subCommandsNone}</span>\n' +
'<loop foreach="subcommand in ${subcommands}">* ${subcommand.name}: ${subcommand.description}\n' +
'</loop>\n' +
'</div>\n',