Permalink
Browse files

linting

  • Loading branch information...
1 parent 2468562 commit 9b3382e6378d4d66f2cfe007c7ae11636ec2f43c @iros iros committed Oct 27, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/view.js
View
@@ -655,21 +655,22 @@
}
// cache rows
- for(var i = 0; i < this.length; i++) {
+ var i, j, row;
+ for(i = 0; i < this.length; i++) {
cachedRows[i] = this._row(i);
}
cachedRows.sort( this.comparator );
// iterate through cached rows, overwriting data in columns
- var i = cachedRows.length;
+ i = cachedRows.length;
while ( i-- ) {
row = cachedRows[i];
this._rowIdByPosition[i] = row[ this.idAttribute ];
this._rowPositionById[ row[ this.idAttribute ] ] = i;
- var j = this._columns.length;
+ j = this._columns.length;
while ( j-- ) {
var col = this._columns[j];
col.data[i] = row[ col.name ];

0 comments on commit 9b3382e

Please sign in to comment.