1
0
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:
Tim Tucker 2012-08-31 18:35:00 -03:00
parent d8d7759613
commit 0c0fef65c1

View File

@ -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;