Just a couple silly things

This commit is contained in:
Zixaphir 2014-01-06 09:50:04 -07:00
parent f782b0d3c0
commit b1ca573935
3 changed files with 4 additions and 12 deletions

View File

@ -9511,11 +9511,7 @@
threadID: thread.ID,
postID: ID
};
if (QR.db.get(data)) {
return true;
} else {
return false;
}
return (QR.db.get(data) ? true : false);
} : function() {
return false;
};

View File

@ -9494,11 +9494,7 @@
threadID: thread.ID,
postID: ID
};
if (QR.db.get(data)) {
return true;
} else {
return false;
}
return (QR.db.get(data) ? true : false);
} : function() {
return false;
};

View File

@ -14,7 +14,7 @@ Unread =
boardID: board.ID
threadID: thread.ID
postID: ID
return if QR.db.get data then true else false
return (if QR.db.get data then true else false)
else ->
return false
@ -158,7 +158,7 @@ Unread =
saveLastReadPost: $.debounce 2 * $.SECOND, ->
return if Unread.thread.isDead
Unread.db.set
boardID: Unread.thread.board.ID
boardID: Unread.thread.board.ID
threadID: Unread.thread.ID
val: Unread.lastReadPost