mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Dev fix: The last change for fnAddData was incorrect - it would mean that objects couldn't be added...
This commit is contained in:
parent
139f33603a
commit
e7bba4bcbe
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -4898,7 +4898,7 @@
|
||||
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
||||
|
||||
/* Check if we want to add multiple rows or not */
|
||||
if ( $.isArray(mData[0]) )
|
||||
if ( typeof mData[0] === "object" && mData[0] !== null )
|
||||
{
|
||||
for ( var i=0 ; i<mData.length ; i++ )
|
||||
{
|
||||
|
@ -157,7 +157,7 @@ this.fnAddData = function( mData, bRedraw )
|
||||
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
||||
|
||||
/* Check if we want to add multiple rows or not */
|
||||
if ( $.isArray(mData[0]) )
|
||||
if ( typeof mData[0] === "object" && mData[0] !== null )
|
||||
{
|
||||
for ( var i=0 ; i<mData.length ; i++ )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user