removed slower find-self method

This commit is contained in:
Mottie 2013-04-12 11:27:46 -05:00
parent 10426559dc
commit a5abb5060a
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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