js/highcharts-master/utils/benchmark/javascript-functions.js
/* Function that updates results.
 * Results is made of the $_SESSION variable, set in index.php.
 * Adds up allTotal and displays it if its a number, 
 * then sets it to null incase further loads of the function.
 * Probably not very pretty..
**/
Function that updates results.
Results is made of the $_SESSION variable, set in index.php.
Adds up allTotal and displays it if its a number,
then sets it to null incase further loads of the function.
Probably not very pretty
Function that updates results . Results is made of the $_SESSION variable set in index . php . Adds up allTotal and displays it if its a number then sets it to null incase further loads of the function . Probably not very pretty
function resultUpdate() {
		$.each(results, function(test, value) {
			if(typeof allTotal === 'number') {
				$.each(folders, function(index, folder) {
					if (test == folder) {
						allTotal = allTotal + parseInt(value);
					}
				});	
			}
			if($('#'+test+'Result').length) {
				$('#'+test+'Result').html(value);
			} else {
				$('.'+test+'Result').html(value);
			}
		});
		if (allTotal) {
			$('#allResult').html(allTotal);
		}
		allTotal = null;
	}
function resultUpdate ( ) { $ . each ( results , function ( test , value ) { if ( typeof allTotal === 'number' ) { $ . each ( folders , function ( index , folder ) { if ( test == folder ) { allTotal = allTotal + parseInt ( value ) ; } } ) ; } if ( $ ( '#' + test + 'Result' ) . length ) { $ ( '#' + test + 'Result' ) . html ( value ) ; } else { $ ( '.' + test + 'Result' ) . html ( value ) ; } } ) ; if ( allTotal ) { $ ( '#allResult' ) . html ( allTotal ) ; } allTotal = null ; }
Function that updates results.
Function that updates results .