From d248d6c8dbca7bf23894a673e0c828e40d431168 Mon Sep 17 00:00:00 2001 From: "Justin F. Hallett" Date: Mon, 9 Feb 2015 11:28:14 -0700 Subject: [PATCH] var init needs to be outside of the bind now, since it's used in other binds --- js/widgets/widget-math.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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');