diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 41a4fa32..0d7c4ce0 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -3780,7 +3780,7 @@ * Get the widest node * @param {object} oSettings dataTables settings object * @param {int} iCol column of interest - * @returns {string} max string length for each column + * @returns {node} widest table node * @memberof DataTable#oApi */ function _fnGetWidestNode( oSettings, iCol ) diff --git a/media/src/core/core.draw.js b/media/src/core/core.draw.js index 66319ee5..d3579367 100644 --- a/media/src/core/core.draw.js +++ b/media/src/core/core.draw.js @@ -1,4 +1,3 @@ - /** * Create a new TR element (and it's TD children) for a row * @param {object} oSettings dataTables settings object @@ -691,10 +690,12 @@ function _fnAddOptionsHtml ( oSettings ) function _fnDetectHeader ( aLayout, nThead ) { var nTrs = $(nThead).children('tr'); - var nCell; - var i, j, k, l, iLen, jLen, iColShifted; + var nTr, nCell; + var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan; + var bUnique; var fnShiftCol = function ( a, i, j ) { - while ( a[i][j] ) { + var k = a[i]; + while ( k[j] ) { j++; } return j; @@ -711,19 +712,18 @@ function _fnDetectHeader ( aLayout, nThead ) /* Calculate a layout array */ for ( i=0, iLen=nTrs.length ; i