docs(infinite): switch var to let

closes #9264
This commit is contained in:
Ray
2016-11-21 18:30:27 +08:00
committed by mhartington
parent 29a56c4536
commit 85047167dd

View File

@ -35,7 +35,7 @@ import { Content } from '../content/content';
* items = [];
*
* constructor() {
* for (var i = 0; i < 30; i++) {
* for (let i = 0; i < 30; i++) {
* this.items.push( this.items.length );
* }
* }
@ -44,7 +44,7 @@ import { Content } from '../content/content';
* console.log('Begin async operation');
*
* setTimeout(() => {
* for (var i = 0; i < 30; i++) {
* for (let i = 0; i < 30; i++) {
* this.items.push( this.items.length );
* }
*