File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 388
388
389
389
var header_index = computeTableHeaderCellIndexes ( table ) ;
390
390
391
- $tableHeaders = $ ( table . config . selectorHeaders , table ) . each ( function ( index ) {
391
+ var $tableHeaders = $ ( table . config . selectorHeaders , table ) . each ( function ( index ) {
392
392
393
393
this . column = header_index [ this . parentNode . rowIndex + "-" + this . cellIndex ] ;
394
394
// this.column = index;
580
580
}
581
581
582
582
/* sorting methods */
583
+
584
+ var sortWrapper ;
583
585
584
586
function multisort ( table , sortList , cache ) {
585
587
586
588
if ( table . config . debug ) {
587
589
var sortTime = new Date ( ) ;
588
590
}
589
591
590
- var dynamicExp = "var sortWrapper = function(a,b) {" ,
592
+ var dynamicExp = "sortWrapper = function(a,b) {" ,
591
593
l = sortList . length ;
592
594
593
595
// TODO: inline functions.
864
866
} ;
865
867
this . clearTableBody = function ( table ) {
866
868
if ( $ . browser . msie ) {
867
- function empty ( ) {
868
- while ( this . firstChild )
869
- this . removeChild ( this . firstChild ) ;
869
+ while ( table . tBodies [ 0 ] . firstChild ) {
870
+ table . tBodies [ 0 ] . removeChild ( table . tBodies [ 0 ] . firstChild ) ;
870
871
}
871
- empty . apply ( table . tBodies [ 0 ] ) ;
872
872
} else {
873
873
table . tBodies [ 0 ] . innerHTML = "" ;
874
874
}
You can’t perform that action at this time.
0 commit comments