Skip to content

Commit

Permalink
Fixed confusion of semi-colons and commas in JavaScript code that mad…
Browse files Browse the repository at this point in the history
…e variables that should be global local and vice versa.
  • Loading branch information
blixt committed Mar 26, 2010
1 parent 1202da5 commit 20a189a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/js/pages.command.js
Expand Up @@ -2,13 +2,13 @@ var CommandHandler;
(function () {

var
page = allPages.filter('#command-page');
page = allPages.filter('#command-page'),
title = page.find('#command-title'),
author = page.find('#command-author'),
frameLink = page.find('#command-frame a'),
text = page.find('#command-text'),
leadsTo = page.find('#command-leads-to'),
leadsToLink = leadsTo.children('a'),
leadsToLink = leadsTo.children('a');

CommandHandler = Application.handler(function (commandId) {
commandId = parseInt(commandId, 10);
Expand Down
4 changes: 2 additions & 2 deletions app/js/pages.create.js
Expand Up @@ -2,10 +2,10 @@ var CreateHandler;
(function () {

var
page = allPages.filter('#create-page');
page = allPages.filter('#create-page'),
commandSuggestions = page.find('#create-command-suggestions'),
frames = page.find('#create-frames'),
commands = page.find('#create-commands'),
commands = page.find('#create-commands');

CreateHandler = Application.handler(function () {
if (!setPage('Create', page, 'You need to log in before you can create ' +
Expand Down
4 changes: 2 additions & 2 deletions app/js/pages.frame.js
Expand Up @@ -2,14 +2,14 @@ var FrameHandler;
(function () {

var
page = allPages.filter('#frame-page');
page = allPages.filter('#frame-page'),
frameTitle = page.find('#frame-title'),
frameAuthor = page.find('#frame-author'),
frameText = page.find('#frame-text'),
newCommand = page.find('#frame-create-command'),
commandsIn = page.find('#frame-commands-in'),
commandsOut = page.find('#frame-commands-out'),
commandsTop = page.find('#frame-top-commands'),
commandsTop = page.find('#frame-top-commands');

FrameHandler = Application.handler(function (frameId) {
frameId = parseInt(frameId, 10);
Expand Down

0 comments on commit 20a189a

Please sign in to comment.