Skip to content

Commit

Permalink
#101 - compile kurtas' performance patch into dist
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoryak committed Aug 6, 2014
1 parent 47503de commit 87a2455
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
10 changes: 6 additions & 4 deletions dist/jquery.floatThead-slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,13 @@
}
}
unfloat();
var widths = [];
for(i=0; i < numCols; i++){
var _rowcell = $rowCells.get(i);
var rowWidth = _rowcell.offsetWidth;
$headerCells.eq(i).width(rowWidth);
$tableCells.eq(i).width(rowWidth);
widths[i] = $rowCells.get(i).offsetWidth;
}
for(i=0; i < numCols; i++){
$headerCells.eq(i).width(widths[i]);
$tableCells.eq(i).width(widths[i]);
}
refloat();
} else {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.floatThead-slim.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions dist/jquery.floatThead.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,13 @@
}
}
unfloat();
var width = new Array();
var widths = [];
for(i=0; i < numCols; i++){
var _rowcell = $rowCells.get(i);
width[i] = _rowcell.offsetWidth;
widths[i] = $rowCells.get(i).offsetWidth;
}
for(i=0; i < numCols; i++){
$headerCells.eq(i).width(width[i]);
$tableCells.eq(i).width(width[i]);
$headerCells.eq(i).width(widths[i]);
$tableCells.eq(i).width(widths[i]);
}
refloat();
} else {
Expand Down
Loading

0 comments on commit 87a2455

Please sign in to comment.