From 02fead58406f0da8947af62de4d12f6ff1f58150 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 17 Sep 2011 15:52:45 +0000 Subject: [PATCH] Followup to r97150 per CR: use .children() instead of .find(), more efficient and prevents potential issues with nested tables. --- resources/jquery/jquery.tablesorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index c17f3f2943..8085093cd0 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -229,7 +229,7 @@ function emulateTHead( $table ) { var $thead = $( '' ); $table.find( 'tr' ).each( function() { - if ( $(this).find( 'td' ).length > 0 ) { + if ( $(this).children( 'td' ).length > 0 ) { // This row contains a , so it's not a header row // Stop here return false; -- 2.20.1