mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-01 13:24:10 +01:00
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.
This commit is contained in:
parent
f7c92e1270
commit
22f350becd
@ -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 = [],
|
||||
|
Loading…
Reference in New Issue
Block a user