external/bbop.js
function get_connections(phynode_id, phynode_getter, conn_hash){

	    var retlist = new Array();

	    // Fish in the connection ancestor hash for edges.
	    var tmp_phynodes = phynode_getter(phynode_id);
	    for( var si = 0; si < tmp_phynodes.length; si++ ){
		var tshp = tmp_phynodes[si];
		var tnid = phynode_id_to_node_id[tshp.id];
		if( tnid && conn_hash[tnid] ){
		    for( var anid in conn_hash[tnid] ){
			var conn_index = conn_hash[tnid][anid];
			var conn = connections[conn_index];
			ll('get_conn: found: [' + conn_index +
					 '] ' + anid + ' <=> ' + tnid +
					 ' ... ' + conn);
			retlist.push(conn);
		    }
		}
	    }
	    return retlist;
	}
function get_connections(phynode_id, phynode_getter, conn_hash){

	    var retlist = new Array();

	    // Fish in the connection ancestor hash for edges.
	    var tmp_phynodes = phynode_getter(phynode_id);
	    for( var si = 0; si < tmp_phynodes.length; si++ ){
		var tshp = tmp_phynodes[si];
		var tnid = phynode_id_to_node_id[tshp.id];
		if( tnid && conn_hash[tnid] ){
		    for( var anid in conn_hash[tnid] ){
			var conn_index = conn_hash[tnid][anid];
			var conn = connections[conn_index];
			ll('get_conn: found: [' + conn_index +
					 '] ' + anid + ' <=> ' + tnid +
					 ' ... ' + conn);
			retlist.push(conn);
		    }
		}
	    }
	    return retlist;
	}
function get_connections ( phynode_id , phynode_getter , conn_hash ) { var retlist = new Array ( ) ; // Fish in the connection ancestor hash for edges. var tmp_phynodes = phynode_getter ( phynode_id ) ; for ( var si = 0 ; si < tmp_phynodes . length ; si ++ ) { var tshp = tmp_phynodes [ si ] ; var tnid = phynode_id_to_node_id [ tshp . id ] ; if ( tnid && conn_hash [ tnid ] ) { for ( var anid in conn_hash [ tnid ] ) { var conn_index = conn_hash [ tnid ] [ anid ] ; var conn = connections [ conn_index ] ; ll ( 'get_conn: found: [' + conn_index + '] ' + anid + ' <=> ' + tnid + ' ... ' + conn ) ; retlist . push ( conn ) ; } } } return retlist ; }
General func.
General func .