Small reflow

This commit is contained in:
Zixaphir 2014-01-08 12:45:16 -07:00
parent 57742dd397
commit 1c504e0676
3 changed files with 16 additions and 24 deletions

View File

@ -12836,24 +12836,22 @@
g.BOARD = new Board(boardID);
req = null;
onload = function(e) {
var board, err, o, _i, _len, _ref;
var board, err, _i, _len, _ref;
if (e.type === 'abort') {
req.onloadend = null;
return;
}
if (req.status !== 200) {
return;
}
try {
if (req.status !== 200) {
return;
}
o = JSON.parse(req.response);
_ref = o.boards;
_ref = JSON.parse(req.response).boards;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
board = _ref[_i];
if (board.board === boardID) {
break;
return Main.updateTitle(board);
}
}
return Main.updateTitle(board);
} catch (_error) {
err = _error;
return Main.handleErrors([

View File

@ -12810,24 +12810,22 @@
g.BOARD = new Board(boardID);
req = null;
onload = function(e) {
var board, err, o, _i, _len, _ref;
var board, err, _i, _len, _ref;
if (e.type === 'abort') {
req.onloadend = null;
return;
}
if (req.status !== 200) {
return;
}
try {
if (req.status !== 200) {
return;
}
o = JSON.parse(req.response);
_ref = o.boards;
_ref = JSON.parse(req.response).boards;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
board = _ref[_i];
if (board.board === boardID) {
break;
return Main.updateTitle(board);
}
}
return Main.updateTitle(board);
} catch (_error) {
err = _error;
return Main.handleErrors([

View File

@ -409,15 +409,11 @@ Main =
req.onloadend = null
return
return unless req.status is 200
try
return unless req.status is 200
o = JSON.parse req.response
for board in o.boards
if board.board is boardID
break
Main.updateTitle board
for board in JSON.parse(req.response).boards
return Main.updateTitle board if board.board is boardID
catch err
Main.handleErrors [