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);
|
trs = $(trs);
|
||||||
}
|
}
|
||||||
|
|
||||||
return trs.map( function (el) {
|
return trs.map( function (i, el) {
|
||||||
row = _fnGetRowData( el );
|
row = _fnGetRowElements( el );
|
||||||
return _fnAddData( oSettings, row.data, this, row.cells );
|
return _fnAddData( oSettings, row.data, el, row.cells );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -547,7 +547,7 @@ function _fnInvalidateRow( settings, rowIdx, src )
|
|||||||
* them from here).
|
* them from here).
|
||||||
* @memberof DataTable#oApi
|
* @memberof DataTable#oApi
|
||||||
*/
|
*/
|
||||||
function _fnGetRowData( row )
|
function _fnGetRowElements( row )
|
||||||
{
|
{
|
||||||
var
|
var
|
||||||
d = [],
|
d = [],
|
||||||
|
Loading…
Reference in New Issue
Block a user