Commit e2b30252 authored by Eirik Alvær's avatar Eirik Alvær
Browse files
parents e70526f8 186c0d9c
/*global Promise, XMLHttpRequest */ /*global Promise, XMLHttpRequest */
/*jshint -W069 */
function CommandExecutor() { function CommandExecutor() {
"use strict"; "use strict";
...@@ -173,6 +174,8 @@ function CommandExecutor() { ...@@ -173,6 +174,8 @@ function CommandExecutor() {
} }
}, },
helpCommands = Object.keys(helpTexts),
req = new XMLHttpRequest(), req = new XMLHttpRequest(),
ajaxPostPromise = function (postData, url) { ajaxPostPromise = function (postData, url) {
...@@ -199,7 +202,7 @@ function CommandExecutor() { ...@@ -199,7 +202,7 @@ function CommandExecutor() {
helpCommands.sort(); helpCommands.sort();
helpCommands.forEach(function (helpCommand) { helpCommands.forEach(function (helpCommand) {
helpTexts.help.description += " " + helpCommand; helpTexts["help"].description += " " + helpCommand;
}); });
return { return {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment