From d8d77596136af39ddc591fa8b324019919e76aea Mon Sep 17 00:00:00 2001 From: Tim Tucker Date: Fri, 31 Aug 2012 18:32:01 -0300 Subject: [PATCH] Update media/src/ext/ext.paging.js Use hasChildNodes() rather than childNodes.length See the following jsperf test for the difference in performance: http://jsperf.com/haschildnodes-vs-childnodes-length --- media/src/ext/ext.paging.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/media/src/ext/ext.paging.js b/media/src/ext/ext.paging.js index ca001692..b1e31a55 100644 --- a/media/src/ext/ext.paging.js +++ b/media/src/ext/ext.paging.js @@ -1,4 +1,3 @@ - /* * Variable: oPagination * Purpose: @@ -223,7 +222,7 @@ $.extend( DataTable.ext.oPagination, { /* Loop over each instance of the pager */ for ( i=0, iLen=an.length ; i