From 1001a332fbe8776e5c43c689c74b6933643546eb Mon Sep 17 00:00:00 2001 From: Tim Tucker Date: Fri, 31 Aug 2012 18:12:39 -0300 Subject: [PATCH] Update media/src/core/core.data.js _fnGatherData: Use firstChild / nextSibling to iterate rather than childNodes --- media/src/core/core.data.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/media/src/core/core.data.js b/media/src/core/core.data.js index 1e49a792..336ee72d 100644 --- a/media/src/core/core.data.js +++ b/media/src/core/core.data.js @@ -1,4 +1,3 @@ - /** * Add a data array to the table, creating DOM node etc. This is the parallel to * _fnGatherData, but for adding rows from a Javascript source, rather than a @@ -81,7 +80,7 @@ function _fnAddData ( oSettings, aDataSupplied ) function _fnGatherData( oSettings ) { var iLoop, i, iLen, j, jLen, jInner, - nTds, nTrs, nTd, aLocalData, iThisIndex, + nTds, nTrs, nTd, nTr, aLocalData, iThisIndex, iRow, iRows, iColumn, iColumns, sNodeName, oCol, oData; @@ -92,31 +91,32 @@ function _fnGatherData( oSettings ) */ if ( oSettings.bDeferLoading || oSettings.sAjaxSource === null ) { - nTrs = oSettings.nTBody.childNodes; - for ( i=0, iLen=nTrs.length ; i