Skip to content

Commit

Permalink
Add two missing "var"s. Thanks Stephan.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Apr 1, 2010
1 parent 611e4fa commit c31015c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xkcd_cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function pathFilename(path) {
match = /\/([^\/]+)$/.exec(path);
var match = /\/([^\/]+)$/.exec(path);
if (match) {
return match[1];
}
Expand Down Expand Up @@ -235,7 +235,7 @@ TerminalShell.commands['cd'] = function(terminal, path) {

TerminalShell.commands['dir'] =
TerminalShell.commands['ls'] = function(terminal, path) {
name_list = $('<ul>');
var name_list = $('<ul>');
$.each(this.pwd, function(name, obj) {
if (obj.type == 'dir') {
name += '/';
Expand Down

0 comments on commit c31015c

Please sign in to comment.