npm/bbopx/bbopx.js
function _on_nominal_success(resp, man){
	
	// Switch on message type when there isn't a complete failure.
	var m = resp.message_type();
	if( m == 'error' ){
	    // Errors trump everything.
	    anchor.apply_callbacks('error', [resp, anchor]);
	}else if( m == 'warning' ){
	    // Don't really have anything for warning yet...remove?
	    anchor.apply_callbacks('warning', [resp, anchor]);
	}else if( m == 'success' ){
	    var sig = resp.signal();
	    if( sig == 'merge' || sig == 'rebuild' || sig == 'meta' ){
		//console.log('run on signal: ' + sig);
		anchor.apply_callbacks(sig, [resp, anchor]);		
	    }else{
		alert('unknown signal: very bad');
	    }
	}else{
	    alert('unimplemented message_type');	    
	}

	// Postrun goes no matter what.
	anchor.apply_callbacks('postrun', [resp, anchor]);
    }
function _on_nominal_success(resp, man){
	
	// Switch on message type when there isn't a complete failure.
	var m = resp.message_type();
	if( m == 'error' ){
	    // Errors trump everything.
	    anchor.apply_callbacks('error', [resp, anchor]);
	}else if( m == 'warning' ){
	    // Don't really have anything for warning yet...remove?
	    anchor.apply_callbacks('warning', [resp, anchor]);
	}else if( m == 'success' ){
	    var sig = resp.signal();
	    if( sig == 'merge' || sig == 'rebuild' || sig == 'meta' ){
		//console.log('run on signal: ' + sig);
		anchor.apply_callbacks(sig, [resp, anchor]);		
	    }else{
		alert('unknown signal: very bad');
	    }
	}else{
	    alert('unimplemented message_type');	    
	}

	// Postrun goes no matter what.
	anchor.apply_callbacks('postrun', [resp, anchor]);
    }
function _on_nominal_success ( resp , man ) { // Switch on message type when there isn't a complete failure. var m = resp . message_type ( ) ; if ( m == 'error' ) { // Errors trump everything. anchor . apply_callbacks ( 'error' , [ resp , anchor ] ) ; } else if ( m == 'warning' ) { // Don't really have anything for warning yet...remove? anchor . apply_callbacks ( 'warning' , [ resp , anchor ] ) ; } else if ( m == 'success' ) { var sig = resp . signal ( ) ; if ( sig == 'merge' || sig == 'rebuild' || sig == 'meta' ) { //console.log('run on signal: ' + sig); anchor . apply_callbacks ( sig , [ resp , anchor ] ) ; } else { alert ( 'unknown signal: very bad' ) ; } } else { alert ( 'unimplemented message_type' ) ; } // Postrun goes no matter what. anchor . apply_callbacks ( 'postrun' , [ resp , anchor ] ) ; }
When we have nominal success, we still need to do some kind of dispatch to the proper functionality.
When we have nominal success we still need to do some kind of dispatch to the proper functionality .