var init needs to be outside of the bind now, since it's used in other binds

This commit is contained in:
Justin F. Hallett 2015-02-09 11:28:14 -07:00
parent 3dc2530301
commit d248d6c8db

View File

@ -389,10 +389,12 @@
math_suffix : ''
},
init : function(table, thisWidget, c, wo){
var init;
c.$table
.off('update.tsmath init.tsmath')
.on(events, function(e){
var init = e.type === 'tablesorter-initialized';
init = e.type === 'tablesorter-initialized';
if (e.type === 'updateAll') {
// redo data-column indexes in case columns were rearranged
c.$table.trigger('update.tsmath');