mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
removed slower find-self method
This commit is contained in:
parent
10426559dc
commit
a5abb5060a
@ -663,8 +663,8 @@
|
||||
j, downTime;
|
||||
// apply event handling to headers
|
||||
c.$headers
|
||||
// http://stackoverflow.com/questions/5312849/jquery-find-self; andSelf() deprecated in jQuery 1.8
|
||||
.find('*')[ $.fn.addBack ? 'addBack': 'andSelf' ]().filter(c.selectorSort)
|
||||
// http://stackoverflow.com/questions/5312849/jquery-find-self;
|
||||
.find(c.selectorSort).add( c.$headers.filter(c.selectorSort) )
|
||||
.unbind('mousedown.tablesorter mouseup.tablesorter sort.tablesorter')
|
||||
.bind('mousedown.tablesorter mouseup.tablesorter sort.tablesorter', function(e, external) {
|
||||
// jQuery v1.2.6 doesn't have closest()
|
||||
|
@ -816,8 +816,8 @@ ts.addWidget({
|
||||
.bind('pagerComplete.tsSticky', function(){
|
||||
resizeHdr();
|
||||
});
|
||||
// set sticky header cell width and link clicks to real header; andSelf() deprecated in jQuery 1.8
|
||||
hdrCells.find('*')[ $.fn.addBack ? 'addBack': 'andSelf' ]().filter(c.selectorSort).each(function(i){
|
||||
// http://stackoverflow.com/questions/5312849/jquery-find-self;
|
||||
hdrCells.find(c.selectorSort).add( c.$headers.filter(c.selectorSort) ).each(function(i){
|
||||
var t = $(this);
|
||||
stkyHdr.children('tr.tablesorter-headerRow').children().eq(i)
|
||||
// clicking on sticky will trigger sort
|
||||
|
Loading…
Reference in New Issue
Block a user