Very minor optimization on timer bar creation.

This commit is contained in:
Aktanusa
2014-08-24 22:18:09 -04:00
parent db41ada262
commit 418b1a7d2e
2 changed files with 2 additions and 2 deletions

View File

@@ -552,7 +552,7 @@ CM.Disp.CreateTimerBar = function() {
colorBar.id = bars[i].id
colorBar.style.display = 'inline-block';
colorBar.style.height = '10px';
if (bars.length == 1 || i == 1) {
if (bars.length - 1 == i) {
colorBar.style.borderTopRightRadius = '10px';
colorBar.style.borderBottomRightRadius = '10px';
}

View File

@@ -233,7 +233,7 @@ CM.Disp.CreateTimerBar = function() {
colorBar.id = bars[i].id
colorBar.style.display = 'inline-block';
colorBar.style.height = '10px';
if (bars.length == 1 || i == 1) {
if (bars.length - 1 == i) {
colorBar.style.borderTopRightRadius = '10px';
colorBar.style.borderBottomRightRadius = '10px';
}