From 0a1a2a17dc7a2561bfad3788db0ea7535ba69a2d Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 21 Dec 2011 09:11:12 +0000 Subject: [PATCH] Updated: The call to _fnFilterCustom doesn't need to check if there are filters since the loop will effectively do that anyway. --- media/js/jquery.dataTables.js | 5 +---- media/src/core/core.filter.js | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index c7335758..11fe65d9 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -2054,10 +2054,7 @@ } /* Custom filtering */ - if ( DataTable.ext.afnFiltering.length !== 0 ) - { - _fnFilterCustom( oSettings ); - } + _fnFilterCustom( oSettings ); } else { diff --git a/media/src/core/core.filter.js b/media/src/core/core.filter.js index 652cfdd6..7b118ea8 100644 --- a/media/src/core/core.filter.js +++ b/media/src/core/core.filter.js @@ -95,10 +95,7 @@ function _fnFilterComplete ( oSettings, oInput, iForce ) } /* Custom filtering */ - if ( DataTable.ext.afnFiltering.length !== 0 ) - { - _fnFilterCustom( oSettings ); - } + _fnFilterCustom( oSettings ); } else {