Permalink
Browse files

Removed error prone functions

  • Loading branch information...
jaseemabid committed Oct 11, 2011
1 parent 914026a commit 892c015299a6e622ff62b6e4a409d5b7f0bcd3e2
Showing with 6 additions and 4 deletions.
  1. +6 −4 js/xkcd_cli.js
View
@@ -91,6 +91,7 @@ var xkcdDisplay = TerminalShell.commands['q'] = TerminalShell.commands['question
//console.log("last now : " + xkcd.last.num);
}
+/*
TerminalShell.commands['next'] = function(terminal) {
xkcdDisplay(terminal, xkcd.last.num+1);
};
@@ -100,10 +101,6 @@ TerminalShell.commands['prev'] = function(terminal) {
xkcdDisplay(terminal, xkcd.last.num-1);
};
-TerminalShell.commands['first'] = function(terminal) {
- xkcdDisplay(terminal, 1);
-};
-
TerminalShell.commands['latest'] =
TerminalShell.commands['last'] = function(terminal) {
xkcdDisplay(terminal, xkcd.latest.num);
@@ -112,6 +109,11 @@ TerminalShell.commands['last'] = function(terminal) {
TerminalShell.commands['random'] = function(terminal) {
xkcdDisplay(terminal, getRandomInt(1, xkcd.latest.num));
};
+*/
+
+TerminalShell.commands['first'] = function(terminal) {
+ xkcdDisplay(terminal, 1);
+};
TerminalShell.commands['answer'] = function(terminal) {
// answer (-a|-A|--answer) [A-D] ( (-q|-Q|--question) \d ) ?

0 comments on commit 892c015

Please sign in to comment.