Followup to r97150 per CR: use .children() instead of .find(), more efficient and...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 17 Sep 2011 15:52:45 +0000 (15:52 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 17 Sep 2011 15:52:45 +0000 (15:52 +0000)
resources/jquery/jquery.tablesorter.js

index c17f3f2..8085093 100644 (file)
        function emulateTHead( $table ) {
                var $thead = $( '<thead>' );
                $table.find( 'tr' ).each( function() {
-                       if ( $(this).find( 'td' ).length > 0 ) {
+                       if ( $(this).children( 'td' ).length > 0 ) {
                                // This row contains a <td>, so it's not a header row
                                // Stop here
                                return false;