From deae02b9d0de8ecc332505efaf046ff8d8819eef Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 23 Aug 2011 21:52:32 +0100 Subject: [PATCH] Fix: Array detection for input data was dodgy - an object with a paramater that has a name of 'length' would mess things up - 6271 --- media/js/jquery.dataTables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 2f1bb386..2a94da15 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -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 );