From 83c0ab88886f71ef14ba2ca11c734fbf146d7dfb Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 14 Dec 2010 20:42:31 +0000 Subject: [PATCH] Fixed: fnDrawCallback was actually the first of the draw callback functions that was called (the internal callbacks were called later). This was incorrect and we now loop over the array to get the order we want. At some point in future it might be required to have an ordering if these draw callbacks become interdependant. --- 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 2b67f746..64361074 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -3165,7 +3165,7 @@ } /* Call all required callback functions for the end of a draw */ - for ( i=0, iLen=oSettings.aoDrawCallback.length ; i=0 ; i-- ) { oSettings.aoDrawCallback[i].fn.call( oSettings.oInstance, oSettings ); }