less indentation

This commit is contained in:
James Campos 2011-08-15 14:20:44 -07:00
parent 240a6d9045
commit d60143a128
2 changed files with 44 additions and 41 deletions

View File

@ -1475,7 +1475,9 @@
return parent.postMessage(data, '*'); return parent.postMessage(data, '*');
}); });
c = $('b').lastChild; c = $('b').lastChild;
if (c.nodeType === 8) { if (c.nodeType !== 8) {
return;
}
_ref = c.textContent.match(/thread:(\d+),no:(\d+)/), _ = _ref[0], thread = _ref[1], id = _ref[2]; _ref = c.textContent.match(/thread:(\d+),no:(\d+)/), _ = _ref[0], thread = _ref[1], id = _ref[2];
search = location.search; search = location.search;
cooldown = /cooldown/.test(search); cooldown = /cooldown/.test(search);
@ -1497,7 +1499,6 @@
url += '#' + id; url += '#' + id;
} }
return window.location = url; return window.location = url;
}
}, },
validateFileSize: function(e) { validateFileSize: function(e) {
var file; var file;

View File

@ -1204,7 +1204,9 @@ qr =
parent.postMessage data, '*' parent.postMessage data, '*'
c = $('b').lastChild c = $('b').lastChild
if c.nodeType is 8 #comment node
return unless c.nodeType is 8 #comment node
[_, thread, id] = c.textContent.match(/thread:(\d+),no:(\d+)/) [_, thread, id] = c.textContent.match(/thread:(\d+),no:(\d+)/)
{search} = location {search} = location