mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-27 00:54:15 +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;
|
var oCol;
|
||||||
|
|
||||||
/* Take an independent copy of the data source so we can bash it about as we wish */
|
/* 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() :
|
aDataSupplied.slice() :
|
||||||
$.extend( true, {}, aDataSupplied );
|
$.extend( true, {}, aDataSupplied );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user