From 4d2edc1fedd862dc3d611d45014ece29ec104f5c Mon Sep 17 00:00:00 2001 From: Deniss Abramovs Date: Wed, 6 Feb 2013 13:40:35 +0200 Subject: [PATCH] Update js/jquery.tablesorter.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix - Uncaught TypeError: Cannot read property 'debug' of undefined  --- js/jquery.tablesorter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index e399f152..15105b7e 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -551,7 +551,7 @@ return this.each(function() { // if no thead or tbody, or tablesorter is already present, quit if (!this.tHead || this.tBodies.length === 0 || this.hasInitialized === true) { - return (this.config.debug) ? log('stopping initialization! No thead, tbody or tablesorter has already been initialized') : ''; + return (this.config && this.config.debug) ? log('stopping initialization! No thead, tbody or tablesorter has already been initialized') : ''; } // declare var $cell, $this = $(this), $t0 = this, @@ -1389,4 +1389,4 @@ } }); -})(jQuery); \ No newline at end of file +})(jQuery);