mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-04 16:24:11 +01:00
Fix: typeof null is an object, which causes issues in fnUpdate when checking if a value passed in is an object or not to fail if null is given as the value. Need to check for null values - 5987
This commit is contained in:
parent
1bf42d2ca9
commit
0843c71f7d
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -1940,7 +1940,7 @@
|
|||||||
this.fnUpdate( _fnGetCellData( oSettings, iRow, i ), iRow, i, false, false );
|
this.fnUpdate( _fnGetCellData( oSettings, iRow, i ), iRow, i, false, false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( typeof mData == 'object' )
|
else if ( mData !== null && typeof mData == 'object' )
|
||||||
{
|
{
|
||||||
/* Object update - update the whole row - assume the developer gets the object right */
|
/* Object update - update the whole row - assume the developer gets the object right */
|
||||||
oSettings.aoData[iRow]._aData = $.extend( true, {}, mData );
|
oSettings.aoData[iRow]._aData = $.extend( true, {}, mData );
|
||||||
|
Loading…
Reference in New Issue
Block a user