[variables] swap length and i declaration order.

This commit is contained in:
Harrison Shoff
2013-02-18 17:22:52 -08:00
parent e1f0515301
commit e012839d08

View File

@@ -371,8 +371,8 @@
var items = getItems(),
goSportsTeam = true,
dragonball,
i,
length;
length,
i;
```
- Assign variables at the top of their scope. This helps avoid issues with variable declaration and assignment hoisting related issues.