From f415cfa2c1758a5a85cd1c3f332e3dbcbba8ccfb Mon Sep 17 00:00:00 2001 From: Robert Abramski Date: Wed, 9 Jul 2014 15:46:44 -0700 Subject: [PATCH] Check for jQuery.browser. In newer versions of jQuery, $.browser is depreciated. Added a check for the browser object. --- jquery.tablesorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.tablesorter.js b/jquery.tablesorter.js index c5eabf0..a9c2f81 100644 --- a/jquery.tablesorter.js +++ b/jquery.tablesorter.js @@ -865,7 +865,7 @@ return /^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g, ''))); }; this.clearTableBody = function (table) { - if ($.browser.msie) { + if ($.browser && $.browser.msie) { while (table.tBodies[0].firstChild) { table.tBodies[0].removeChild(table.tBodies[0].firstChild); }