Update js/jquery.tablesorter.js

Fix - Uncaught TypeError: Cannot read property 'debug' of undefined
This commit is contained in:
Deniss Abramovs 2013-02-06 13:40:35 +02:00
parent 197960a791
commit 4d2edc1fed

View File

@ -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);
})(jQuery);