From 93d6881c362d901d9d343fe776e371042fc007cc Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Thu, 7 Aug 2014 17:12:57 +0100 Subject: [PATCH] jquery.tablesorter: Limit the scope of two variables No functional change, but improves readability of the code Change-Id: If858d198c9ca0e2feb4930f9f94425262f8afbdc --- resources/src/jquery/jquery.tablesorter.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ); -- 2.20.1