javascript/ractive.js
function truncateStack ( stack ) {
  	if ( !stack ) return '';

  	var lines = stack.split( '\n' );
  	var name = Computation.name + '.getValue';

  	var truncated = [];

  	var len = lines.length;
  	for ( var i = 1; i < len; i += 1 ) {
  		var line = lines[i];

  		if ( ~line.indexOf( name ) ) {
  			return truncated.join( '\n' );
  		} else {
  			truncated.push( line );
  		}
  	}
  }
function truncateStack ( stack ) {
  	if ( !stack ) return '';

  	var lines = stack.split( '\n' );
  	var name = Computation.name + '.getValue';

  	var truncated = [];

  	var len = lines.length;
  	for ( var i = 1; i < len; i += 1 ) {
  		var line = lines[i];

  		if ( ~line.indexOf( name ) ) {
  			return truncated.join( '\n' );
  		} else {
  			truncated.push( line );
  		}
  	}
  }
function truncateStack ( stack ) { if ( ! stack ) return '' ; var lines = stack . split ( '\n' ) ; var name = Computation . name + '.getValue' ; var truncated = [ ] ; var len = lines . length ; for ( var i = 1 ; i < len ; i += 1 ) { var line = lines [ i ] ; if ( ~ line . indexOf ( name ) ) { return truncated . join ( '\n' ) ; } else { truncated . push ( line ) ; } } }
Ditto. This function truncates the stack to only include app code
Ditto . This function truncates the stack to only include app code