angular.module('commentFilters', []).filter('authorCssClass', function () {
	return function (comment, question) {
		var answers = comment.author.answers;
		if (!answers) {
			return;
		}
		for (var i = 0; i < answers.length; i++) {
			if (answers[i].question == question._id) {
				if (answers[i].answer === 0) {
					return 'red';
				} else {
					return 'blue';
				}
			} 
		}
	}
});
@@ -110,16 +110,83 @@
 on) %7B%0A%09%09
+if (!comment.author %7C%7C !comment.author.answers) %7B%0A%09%09%09return;%0A%09%09%7D%0A%09%09
 var answ
@@ -218,41 +218,8 @@
 ers;
-%0A%09%09if (!answers) %7B%0A%09%09%09return;%0A%09%09%7D
 %0A%09%09f

Fix client js error if comment author deleted