Skip to content

Commit

Permalink
docs: fix IE11 Array.fill issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonslyvia committed Oct 11, 2016
1 parent 7b282db commit 7e2ceb9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/pages/debounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class Debounce extends Component {

const id = uniqueId();
this.state = {
arr: Array(20).fill(0).map((a, index) => {
arr: Array.apply(null, Array(20)).map((a, index) => {
return {
uniqueId: id,
once: [6, 7].indexOf(index) > -1
Expand Down
2 changes: 1 addition & 1 deletion examples/pages/decorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class Decorator extends Component {

const id = uniqueId();
this.state = {
arr: Array(20).fill(0).map((a, index) => ({
arr: Array.apply(null, Array(20)).map((a, index) => ({
uniqueId: id,
once: [6, 7].indexOf(index) > -1
}))
Expand Down
2 changes: 1 addition & 1 deletion examples/pages/normal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class Normal extends Component {

const id = uniqueId();
this.state = {
arr: Array(20).fill(0).map((a, index) => {
arr: Array.apply(null, Array(20)).map((a, index) => {
return {
uniqueId: id,
once: [6, 7].indexOf(index) > -1
Expand Down
2 changes: 1 addition & 1 deletion examples/pages/overflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class Overflow extends Component {

const id = uniqueId();
this.state = {
arr: Array(20).fill(0).map((a, index) => {
arr: Array.apply(null, Array(20)).map((a, index) => {
return {
uniqueId: id,
once: [6, 7].indexOf(index) > -1
Expand Down
2 changes: 1 addition & 1 deletion examples/pages/placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class Placeholder extends Component {

const id = uniqueId();
this.state = {
arr: Array(20).fill(0).map((a, index) => {
arr: Array.apply(null, Array(20)).map((a, index) => {
return {
uniqueId: id,
once: [6, 7].indexOf(index) > -1
Expand Down
2 changes: 1 addition & 1 deletion examples/pages/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class Scroll extends Component {

const id = uniqueId();
this.state = {
arr: Array(20).fill(0).map((a, index) => ({
arr: Array.apply(null, Array(20)).map((a, index) => ({
uniqueId: id,
once: [6, 7].indexOf(index) > -1
}))
Expand Down

0 comments on commit 7e2ceb9

Please sign in to comment.