mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-18 16:54:14 +01:00
Update media/src/ext/ext.paging.js
Replace childNodes.length check with hasChildNodes() in one more place
This commit is contained in:
parent
d8d7759613
commit
0c0fef65c1
@ -76,7 +76,7 @@ $.extend( DataTable.ext.oPagination, {
|
||||
/* Loop over each instance of the pager */
|
||||
for ( var i=0, iLen=an.length ; i<iLen ; i++ )
|
||||
{
|
||||
if ( an[i].childNodes.length !== 0 )
|
||||
if ( an[i].hasChildNodes() )
|
||||
{
|
||||
an[i].childNodes[0].className = ( oSettings._iDisplayStart === 0 ) ?
|
||||
oClasses.sPagePrevDisabled : oClasses.sPagePrevEnabled;
|
||||
|
Loading…
x
Reference in New Issue
Block a user