src/PluginInfo/PluginInfo.js
function _getTags(pelem, tag, platform, transform) {
    var platformTag = pelem.find('./platform[@name="' + platform + '"]');
    var tagsInRoot = pelem.findall(tag);
    tagsInRoot = tagsInRoot || [];
    var tagsInPlatform = platformTag ? platformTag.findall(tag) : [];
    var tags = tagsInRoot.concat(tagsInPlatform);
    if ( typeof transform === 'function' ) {
        tags = tags.map(transform);
    }
    return tags;
}
function _getTags(pelem, tag, platform, transform) {
    var platformTag = pelem.find('./platform[@name="' + platform + '"]');
    var tagsInRoot = pelem.findall(tag);
    tagsInRoot = tagsInRoot || [];
    var tagsInPlatform = platformTag ? platformTag.findall(tag) : [];
    var tags = tagsInRoot.concat(tagsInPlatform);
    if ( typeof transform === 'function' ) {
        tags = tags.map(transform);
    }
    return tags;
}
function _getTags ( pelem , tag , platform , transform ) { var platformTag = pelem . find ( './platform[@name="' + platform + '"]' ) ; var tagsInRoot = pelem . findall ( tag ) ; tagsInRoot = tagsInRoot || [ ] ; var tagsInPlatform = platformTag ? platformTag . findall ( tag ) : [ ] ; var tags = tagsInRoot . concat ( tagsInPlatform ) ; if ( typeof transform === 'function' ) { tags = tags . map ( transform ) ; } return tags ; }
Helper function used by most of the getSomething methods of PluginInfo. Get all elements of a given name. Both in root and in platform sections for the given platform. If transform is given and is a function, it is applied to each element.
Helper function used by most of the getSomething methods of PluginInfo . Get all elements of a given name . Both in root and in platform sections for the given platform . If transform is given and is a function it is applied to each element .