Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/HiddenColumns.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ define([
//Sort the cached columns to have the same order as g._columns.
for(; i < columns.length && j < cols.length; ++i, ++j){
//j must not overflow here because t._cols and g._columns are synced up.
for(c = cols[j]; c.hidden; c = cols[j]){
for(c = cols[j]; c && c.hidden; c = cols[j]){
++j;
}
if(columns[i] != c){
if(c && columns[i] != c){
k = array.indexOf(cols, columns[i]);
cols[j] = cols[k];
cols[k] = c;
Expand Down