1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00

Dev fix: rows.add() API was trying to get the row index from the wrong

parameter.

- Simple fix, just had the array index in the wrong location.
This commit is contained in:
Allan Jardine 2013-05-25 08:14:21 +01:00
parent 0b0fc5fe04
commit f7c92e1270

View File

@ -103,7 +103,7 @@ _api.register( 'rows.add()', function ( rows ) {
row = rows[i];
if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
out.push( _fnAddTr( settings, row ) )[0];
out.push( _fnAddTr( settings, row )[0] );
}
else {
out.push( _fnAddData( settings, row ) );