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:
parent
60484bc93a
commit
223fed5e94
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user