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, threadID: thread.ID,
postID: ID postID: ID
}; };
if (QR.db.get(data)) { return (QR.db.get(data) ? true : false);
return true;
} else {
return false;
}
} : function() { } : function() {
return false; return false;
}; };

View File

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

View File

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