From 793020a8d41ffbd37f4e5bb1862c7c06ec069338 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Mon, 20 Feb 2012 08:15:28 +0000 Subject: [PATCH] Updated: When throwing an error, throw a "new Error()" so we can get a bit more information about the error Updated: When using custom sort data types, if the returned array is not of the required length (aoData.length), then an error is thrown --- media/js/jquery.dataTables.js | 13 ++++++++++--- media/src/core/core.sort.js | 11 +++++++++-- media/src/core/core.support.js | 2 +- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 9c64c8b3..ce5282ed 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -3798,9 +3798,16 @@ if ( DataTable.ext.afnSortData[sDataType] ) { var aData = DataTable.ext.afnSortData[sDataType]( oSettings, iColumn, iVisColumn ); - for ( j=0, jLen=aoData.length ; j