diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/module/Panel.jsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/module/Panel.jsx b/src/module/Panel.jsx index b91c6fe..4c7eaae 100644 --- a/src/module/Panel.jsx +++ b/src/module/Panel.jsx | |||
@@ -7,9 +7,11 @@ function noop() { | |||
7 | } | 7 | } |
8 | 8 | ||
9 | function generateOptions(length) { | 9 | function generateOptions(length) { |
10 | return Array.apply(null, {length: length}).map((item, index) => { | 10 | const arr = []; |
11 | return index; | 11 | for(let i = 0; i < length; i++){ |
12 | }); | 12 | arr.push(i); |
13 | } | ||
14 | return arr; | ||
13 | } | 15 | } |
14 | 16 | ||
15 | const Panel = React.createClass({ | 17 | const Panel = React.createClass({ |