Honestly not worth pursuing errors during nav on QR.status

This commit is contained in:
Zixaphir 2015-01-13 12:13:32 -07:00
parent daa3f9d2cc
commit b848007865
3 changed files with 5 additions and 5 deletions

View File

@ -9623,12 +9623,12 @@
return QR.notifications = [];
},
status: function() {
var disabled, status, thread, value;
var disabled, status, thread, value, _ref;
if (!QR.nodes) {
return;
}
thread = QR.posts[0].thread;
if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) {
if (thread !== 'new' && ((_ref = g.threads["" + g.BOARD + "." + thread]) != null ? _ref.isDead : void 0)) {
value = 'Dead';
disabled = true;
QR.cooldown.auto = false;

View File

@ -9666,12 +9666,12 @@
return QR.notifications = [];
},
status: function() {
var disabled, status, thread, value;
var disabled, status, thread, value, _ref;
if (!QR.nodes) {
return;
}
thread = QR.posts[0].thread;
if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) {
if (thread !== 'new' && ((_ref = g.threads["" + g.BOARD + "." + thread]) != null ? _ref.isDead : void 0)) {
value = 'Dead';
disabled = true;
QR.cooldown.auto = false;

View File

@ -197,7 +197,7 @@ QR =
status: ->
return unless QR.nodes
{thread} = QR.posts[0]
if thread isnt 'new' and g.threads["#{g.BOARD}.#{thread}"].isDead
if thread isnt 'new' and g.threads["#{g.BOARD}.#{thread}"]?.isDead
value = 'Dead'
disabled = true
QR.cooldown.auto = false