red/nodes/index.js
/**
 * Called from a Node's constructor function, invokes the super-class
 * constructor and attaches any credentials to the node.
 * @param node the node object being created
 * @param def the instance definition for the node 
 */
Called from a Node's constructor function, invokes the super-class
constructor and attaches any credentials to the node.
@param node the node object being created
@param def the instance definition for the node
Called from a Node ' s constructor function invokes the super - class constructor and attaches any credentials to the node . @param node the node object being created @param def the instance definition for the node
function createNode(node,def) {
    Node.call(node,def);
    var creds = credentials.get(node.id);
    if (creds) {
        node.credentials = creds;
    }
}
function createNode ( node , def ) { Node . call ( node , def ) ; var creds = credentials . get ( node . id ) ; if ( creds ) { node . credentials = creds ; } }
Called from a Node's constructor function, invokes the super-class
 constructor and attaches any credentials to the node.
Called from a Node ' s constructor function invokes the super - class constructor and attaches any credentials to the node .