From 22f350becd7741ee972440d5a900b76e21e9af6c Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sat, 25 May 2013 08:15:35 +0100 Subject: [PATCH] Dev fix: Fix name conflict and adding of TR elements - There were two functions called _fnGetRowData, which were conflicting - The $().map doesn't execute with the scope of the element, need to pass the element through to the get data function correctly. --- media/src/core/core.data.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/media/src/core/core.data.js b/media/src/core/core.data.js index ebaac6a0..cbde464a 100644 --- a/media/src/core/core.data.js +++ b/media/src/core/core.data.js @@ -85,9 +85,9 @@ function _fnAddTr( oSettings, trs ) trs = $(trs); } - return trs.map( function (el) { - row = _fnGetRowData( el ); - return _fnAddData( oSettings, row.data, this, row.cells ); + return trs.map( function (i, el) { + row = _fnGetRowElements( el ); + return _fnAddData( oSettings, row.data, el, row.cells ); } ); } @@ -547,7 +547,7 @@ function _fnInvalidateRow( settings, rowIdx, src ) * them from here). * @memberof DataTable#oApi */ -function _fnGetRowData( row ) +function _fnGetRowElements( row ) { var d = [],