From 0447f1e792485ce2dddb4006a4de7ce50b85497c Mon Sep 17 00:00:00 2001 From: Ilya Shuklin Date: Tue, 14 Apr 2015 16:55:12 +0300 Subject: [PATCH] Update index.html getting rid of magic numbers --- examples/transitions/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/transitions/index.html b/examples/transitions/index.html index 1fdb68af92f6f..96717643927d6 100644 --- a/examples/transitions/index.html +++ b/examples/transitions/index.html @@ -54,10 +54,10 @@

Example Details

var children = []; var pos = 0; var colors = ['red', 'gray', 'blue']; - for (var i = this.state.current; i < this.state.current + 3; i++) { + for (var i = this.state.current; i < this.state.current + colors.length; i++) { var style = { left: pos * 128, - background: colors[i % 3] + background: colors[i % colors.length] }; pos++; children.push(
{i}
);