'Returns list of JS dependencies belonging to `group` in settings.PIPELINE_JS.
Respects `PIPELINE_ENABLED` setting.'

@staticmethod
def get_js_dependencies(group):

    if settings.PIPELINE_ENABLED:
        return [settings.PIPELINE_JS[group]['output_filename']]
    else:
        return settings.PIPELINE_JS[group]['source_filenames']
