ambria.js
/**
 * Two way to call this function.
 * first :
 *      paramter one : name
 *      paramter two : module
 * second :
 *      paramter one : Object (which is basicaly a key-value object where key is a name and value is a module)
 */
Two way to call this function.
Two way to call this function .
function register() {
    if (arguments.length == 1) {
        registerAll(arguments[0]);
    }
    else if (arguments.length == 2) {
        registerModule(arguments[0], arguments[1]);
    }
}
function register ( ) { if ( arguments . length == 1 ) { registerAll ( arguments [ 0 ] ) ; } else if ( arguments . length == 2 ) { registerModule ( arguments [ 0 ] , arguments [ 1 ] ) ; } }
Two way to call this function.
Two way to call this function .