src/debug.js
/** Chop too long values to specified limit */
Chop too long values to specified limit
Chop too long values to specified limit
function chop_long_values(limit) {
	if(limit-3 < 1) {
		throw new TypeError("limit must be at least four (4) characters!");
	}
	return function(x) {
		x = ''+x;
		if(x.length > limit) {
			return x.substr(0, limit-3) + '...';
		}
		return x;
	};
}
function chop_long_values ( limit ) { if ( limit - 3 < 1 ) { throw new TypeError ( "limit must be at least four (4) characters!" ) ; } return function ( x ) { x = '' + x ; if ( x . length > limit ) { return x . substr ( 0 , limit - 3 ) + '...' ; } return x ; } ; }
Chop too long values to specified limit
Chop too long values to specified limit