mix-ins/behavior.js
function removeHiddenColumns(oldSorted, hiddenColumns){
    var dirty = false;
    oldSorted.forEach(function(i) {
        var j = 0,
            colIndex;
        while (j < hiddenColumns.length) {
            colIndex = hiddenColumns[j].index + 1; //hack to get around 0 index
            if (colIndex === i) {
                hiddenColumns[j].unSort();
                dirty = true;
                break;
            }
            j++;
        }
    });
    return dirty;
}
function removeHiddenColumns(oldSorted, hiddenColumns){
    var dirty = false;
    oldSorted.forEach(function(i) {
        var j = 0,
            colIndex;
        while (j < hiddenColumns.length) {
            colIndex = hiddenColumns[j].index + 1; //hack to get around 0 index
            if (colIndex === i) {
                hiddenColumns[j].unSort();
                dirty = true;
                break;
            }
            j++;
        }
    });
    return dirty;
}
function removeHiddenColumns ( oldSorted , hiddenColumns ) { var dirty = false ; oldSorted . forEach ( function ( i ) { var j = 0 , colIndex ; while ( j < hiddenColumns . length ) { colIndex = hiddenColumns [ j ] . index + 1 ; //hack to get around 0 index if ( colIndex === i ) { hiddenColumns [ j ] . unSort ( ) ; dirty = true ; break ; } j ++ ; } } ) ; return dirty ; }
Logic to moved to adapter layer outside of Hypergrid Core
Logic to moved to adapter layer outside of Hypergrid Core