aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMG12 <wuzhao.mail@gmail.com>2015-12-03 14:24:56 +0800
committerMG12 <wuzhao.mail@gmail.com>2015-12-03 14:24:56 +0800
commit886312ffa19f856eaf4c60f096d6afe7b44359a9 (patch)
treed0fdbbe15448861e5b9b3ee23d38854241ccdd9b
parentc572b1cd5336b63b0bd47215384727c8c93f52a9 (diff)
parent98275fd898df0711b4e31c6705c8cd66f790816e (diff)
downloadtime-picker-886312ffa19f856eaf4c60f096d6afe7b44359a9.tar.gz
time-picker-886312ffa19f856eaf4c60f096d6afe7b44359a9.tar.zst
time-picker-886312ffa19f856eaf4c60f096d6afe7b44359a9.zip
Merge pull request #4 from iceman1212/patch-2
SCRIPT5028: Function.prototype.apply: 缺少 Array 或 arguments 对象
-rw-r--r--src/module/Panel.jsx8
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
9function generateOptions(length) { 9function 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
15const Panel = React.createClass({ 17const Panel = React.createClass({