From 223fed5e945739fd2e3806113b077521de438018 Mon Sep 17 00:00:00 2001 From: Tim Tucker Date: Fri, 5 Oct 2012 23:50:33 -0300 Subject: [PATCH] Update media/src/core/core.ajax.js simplify conditions: !A || (A && (B || C) really is the same as: !A || (true && (B || C)) which simplifies to: !A || (B || C) which simplifies to: !A || B || C --- media/src/core/core.ajax.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/media/src/core/core.ajax.js b/media/src/core/core.ajax.js index 2f27b10e..2838c9eb 100644 --- a/media/src/core/core.ajax.js +++ b/media/src/core/core.ajax.js @@ -1,5 +1,4 @@ - /** * Update the table using an Ajax call * @param {object} oSettings dataTables settings object @@ -139,8 +138,7 @@ function _fnAjaxUpdateDraw ( oSettings, json ) } } - if ( !oSettings.oScroll.bInfinite || - (oSettings.oScroll.bInfinite && (oSettings.bSorted || oSettings.bFiltered)) ) + if ( !oSettings.oScroll.bInfinite || oSettings.bSorted || oSettings.bFiltered ) { _fnClearTable( oSettings ); }