rem: if (comment['points'] < threshold && (user_is_anon || user_uid != comment['uid'])) futuredisplaymode[cid] = 'hidden'; else if (comment['points'] < (user_highlightthresh - (root_comments_hash[cid] ? 1 : 0))) futuredisplaymode[cid] = 'oneline'; else futuredisplaymode[cid] = 'full'; 
add: futuredisplaymode[cid] = determineMode(cid, threshold, user_highlightthresh); 
context: function updateCommentTree(cid, threshold, subexpand) {	setDefaultDisplayMode(cid);	var comment = comments[cid];	// skip the root comment, if it exists; leave it full, but let user collapse	// if he chooses, and leave it that way: this comment will not move with	// T/HT changes	if ((subexpand || threshold) && cid != root_comment) {		if (subexpand && subexpand == 1) {			if (prehiddendisplaymode[cid] == 'oneline' || prehiddendisplaymode[cid] == 'full')				futuredisplaymode[cid] = 'full';			else				futuredisplaymode[cid] = 'hidden';		} else {			if (comment['points'] < threshold && (user_is_anon || user_uid != comment['uid']))				futuredisplaymode[cid] = 'hidden';			else if (comment['points'] < (user_highlightthresh - (root_comments_hash[cid] ? 1 : 0)))				futuredisplaymode[cid] = 'oneline';			else				futuredisplaymode[cid] = 'full';		}		updateDisplayMode(cid, futuredisplaymode[cid], 1);	}//	if (subexpand && subexpand == 2) {//		updateComment(cid, 'hidden');//		prehiddendisplaymode[cid] = futuredisplaymode[cid];//	} else if (futuredisplaymode[cid] && futuredisplaymode[cid] != displaymode[cid]) {		//updateComment(cid, futuredisplaymode[cid]);		if (displaymode[cid] != futuredisplaymode[cid])			update_comments[cid] = futuredisplaymode[cid];//	}	var kidhiddens = 0;	if (comment && comment['kids'] && comment['kids'].length) {		if (!subexpand) {			if (shift_down && !alt_down && futuredisplaymode[cid] == 'full') {				subexpand = 1;			} else if (shift_down && !alt_down && futuredisplaymode[cid] == 'oneline') {				subexpand = 2;				threshold = user_threshold;			}		}		for (var kiddie = 0; kiddie < comment['kids'].length; kiddie++) {			kidhiddens += updateCommentTree(comment['kids'][kiddie], threshold, subexpand);		}	}	return kidHiddens(cid, kidhiddens);}
meta: 4674	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4674/e5dff2e642504843ce374317e2e256b458de42da/comments.js/clean/themes/slashcode/htdocs/images/comments.js