Index: trunk/phase3/resources/jquery/jquery.tablesorter.js |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | l = cells.length; |
103 | 103 | |
104 | 104 | for ( var i = 0; i < l; i++ ) { |
105 | | - p = false; |
| 105 | + var p = false; |
106 | 106 | sortType = $headers.eq(i).data('sort-type'); |
107 | 107 | if ( typeof sortType != 'undefined' ) { |
108 | 108 | p = getParserById( sortType ); |
— | — | @@ -264,7 +264,7 @@ |
265 | 265 | // } |
266 | 266 | //var header_index = computeTableHeaderCellIndexes( table ); |
267 | 267 | var realCellIndex = 0; |
268 | | - $tableHeaders = $( "thead:eq(0) tr", table ); |
| 268 | + var $tableHeaders = $( "thead:eq(0) tr", table ); |
269 | 269 | if ( $tableHeaders.length > 1 ) { |
270 | 270 | $tableHeaders.each(function() { |
271 | 271 | if (this.cells.length > maxSeen) { |
— | — | @@ -795,7 +795,7 @@ |
796 | 796 | format: function ( s, table ) { |
797 | 797 | s = $.trim( s.toLowerCase() ); |
798 | 798 | |
799 | | - for ( i = 1, j = 0; i < 13 && j < 2; i++ ) { |
| 799 | + for ( var i = 1, j = 0; i < 13 && j < 2; i++ ) { |
800 | 800 | s = s.replace( ts.monthNames[j][i], i ); |
801 | 801 | if ( i == 12 ) { |
802 | 802 | j++; |
— | — | @@ -859,4 +859,4 @@ |
860 | 860 | type: "numeric" |
861 | 861 | } ); |
862 | 862 | |
863 | | -} )( jQuery ); |
\ No newline at end of file |
| 863 | +} )( jQuery ); |