1
0
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:
Allan Jardine 2011-08-23 21:52:32 +01:00
parent 6dc4630866
commit deae02b9d0

View File

@ -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 );