lib/plugins/sortDependencies.js
function pluginType(plugin) {
    var name = plugin.getName();
    return (name && name.indexOf(THEME_PREFIX) === 0) ? TYPE_THEME : TYPE_PLUGIN;
}
function pluginType(plugin) {
    var name = plugin.getName();
    return (name && name.indexOf(THEME_PREFIX) === 0) ? TYPE_THEME : TYPE_PLUGIN;
}
function pluginType ( plugin ) { var name = plugin . getName ( ) ; return ( name && name . indexOf ( THEME_PREFIX ) === 0 ) ? TYPE_THEME : TYPE_PLUGIN ; }
Returns the type of a plugin given its name
@param {Plugin} plugin
@return {String}
Returns the type of a plugin given its name