diff --git a/js/widgets/widget-math.js b/js/widgets/widget-math.js index 3ceb2df3..8cc95342 100644 --- a/js/widgets/widget-math.js +++ b/js/widgets/widget-math.js @@ -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');