mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-29 11:24:10 +01:00
Fix: Array detection for input data was dodgy - an object with a paramater that has a name of 'length' would mess things up - 6271
This commit is contained in:
parent
6dc4630866
commit
deae02b9d0
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -2668,7 +2668,7 @@
|
||||
var oCol;
|
||||
|
||||
/* Take an independent copy of the data source so we can bash it about as we wish */
|
||||
var aDataIn = (typeof aDataSupplied.length == 'number') ?
|
||||
var aDataIn = ($.isArray(aDataSupplied)) ?
|
||||
aDataSupplied.slice() :
|
||||
$.extend( true, {}, aDataSupplied );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user