From cb2495b440a97c83a1a2bb99a726d20d3c027592 Mon Sep 17 00:00:00 2001 From: Tim Tucker Date: Mon, 3 Sep 2012 19:36:18 -0300 Subject: [PATCH] Update media/src/core/core.sort.js Use var to keep track of # of classes found (length on sparse array doesn't work properly) --- media/src/core/core.sort.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/media/src/core/core.sort.js b/media/src/core/core.sort.js index e01c1b4a..cff09617 100644 --- a/media/src/core/core.sort.js +++ b/media/src/core/core.sort.js @@ -408,7 +408,7 @@ function _fnSortingClasses( oSettings ) var reClass = new RegExp(sClass + "[123]"); /* Track columns where we've found one of the sorting classes */ - var abFound = []; + var abFound = [], iFound = 0; for ( i=0, iLen=nTds.length; i