1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-30 23:52:11 +01:00

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
This commit is contained in:
Tim Tucker 2012-10-05 23:50:33 -03:00
parent 60484bc93a
commit 223fed5e94

View File

@ -1,5 +1,4 @@
/** /**
* Update the table using an Ajax call * Update the table using an Ajax call
* @param {object} oSettings dataTables settings object * @param {object} oSettings dataTables settings object
@ -139,8 +138,7 @@ function _fnAjaxUpdateDraw ( oSettings, json )
} }
} }
if ( !oSettings.oScroll.bInfinite || if ( !oSettings.oScroll.bInfinite || oSettings.bSorted || oSettings.bFiltered )
(oSettings.oScroll.bInfinite && (oSettings.bSorted || oSettings.bFiltered)) )
{ {
_fnClearTable( oSettings ); _fnClearTable( oSettings );
} }