src/loader.js
/**
 * 
 * @param {Object} combinatorItems 
 * @returns function waiting for state
 */
@param {Object} combinatorItems
@returns function waiting for state
@param { Object } combinatorItems @returns function waiting for state
function combineGroup(combinatorItems) {
    if (!_.isArray(combinatorItems)) {
        throw 'the parameter should be array';
    }
    var combinators = _.map(combinatorItems, function (item) {
        return combine(item.compName, item.selector)
    });
    return function (state) {
        var results = _.map(combinators, function (cm) {
            return cm(state);
        });
        return results[0]
    }
}
function combineGroup ( combinatorItems ) { if ( ! _ . isArray ( combinatorItems ) ) { throw 'the parameter should be array' ; } var combinators = _ . map ( combinatorItems , function ( item ) { return combine ( item . compName , item . selector ) } ) ; return function ( state ) { var results = _ . map ( combinators , function ( cm ) { return cm ( state ) ; } ) ; return results [ 0 ] } }
@param {Object} combinatorItems
 @returns function waiting for state
@param { Object } combinatorItems @returns function waiting for state