Flip order of _value testing recommended and disliked
ChangeTable2 tests disliked, and then recommended. If both scores are supplied by two different users, favor the disliked negative score over the positive recommended score, matching ChangeTable2's own order and thus avoid a weird case of a red "1" value with no leading +/- value. Change-Id: Ic2ddac77ff57e4db2490ad6b7c8b6a16c1c90b43
This commit is contained in:
@@ -95,8 +95,8 @@ public class ChangeInfo extends JavaScriptObject {
|
||||
final native short _value()
|
||||
/*-{
|
||||
if (this.value) return this.value;
|
||||
if (this.recommended) return 1;
|
||||
if (this.disliked) return -1;
|
||||
if (this.recommended) return 1;
|
||||
return 0;
|
||||
}-*/;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user