mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core: Add column count to debug log
This commit is contained in:
parent
e700b2a35a
commit
d8b2b27ab6
@ -978,7 +978,8 @@
|
||||
if ( c.debug ) {
|
||||
len = Math.min( 5, c.cache[ 0 ].normalized.length );
|
||||
console[ console.group ? 'group' : 'log' ]( 'Building cache for ' + c.totalRows +
|
||||
' rows (showing ' + len + ' rows in log)' + ts.benchmark( cacheTime ) );
|
||||
' rows (showing ' + len + ' rows in log) and ' + c.columns + ' columns' +
|
||||
ts.benchmark( cacheTime ) );
|
||||
val = {};
|
||||
for ( colIndex = 0; colIndex < c.columns; colIndex++ ) {
|
||||
for ( cacheIndex = 0; cacheIndex < len; cacheIndex++ ) {
|
||||
@ -2104,7 +2105,7 @@
|
||||
▀████▀ ██ ██ ██████ ██ ██ ██ ██████ █████▀
|
||||
*/
|
||||
benchmark : function( diff ) {
|
||||
return ( ' ( ' + ( new Date().getTime() - diff.getTime() ) + 'ms )' );
|
||||
return ( ' (' + ( new Date().getTime() - diff.getTime() ) + ' ms)' );
|
||||
},
|
||||
// deprecated ts.log
|
||||
log : function() {
|
||||
|
Loading…
Reference in New Issue
Block a user