From: Derk-Jan Hartman Date: Thu, 7 Aug 2014 16:12:57 +0000 (+0100) Subject: jquery.tablesorter: Limit the scope of two variables X-Git-Tag: 1.31.0-rc.0~14530^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=93d6881c362d901d9d343fe776e371042fc007cc;p=lhc%2Fweb%2Fwiklou.git jquery.tablesorter: Limit the scope of two variables No functional change, but improves readability of the code Change-Id: If858d198c9ca0e2feb4930f9f94425262f8afbdc --- diff --git a/resources/src/jquery/jquery.tablesorter.js b/resources/src/jquery/jquery.tablesorter.js index 5b1e2a7f30..b46ab37527 100644 --- a/resources/src/jquery/jquery.tablesorter.js +++ b/resources/src/jquery/jquery.tablesorter.js @@ -296,8 +296,6 @@ colspan, headerCount, longestTR, - matrixRowIndex, - matrixColumnIndex, exploded, $tableHeaders = $( [] ), $tableRows = $( 'thead:eq(0) > tr', table ); @@ -309,6 +307,9 @@ // Loop through all the dom cells of the thead $tableRows.each( function ( rowIndex, row ) { $.each( row.cells, function ( columnIndex, cell ) { + var matrixRowIndex, + matrixColumnIndex; + rowspan = Number( cell.rowSpan ); colspan = Number( cell.colSpan );