Skip to content

Errors if POMs don't include plugins that poms they attach use #158

@NullTerminator

Description

@NullTerminator

Describe the bug
When a pom attaches another that uses a plugin with Javascript the browser throws errors because the Javascript doesn't get included.

To Reproduce

Voom::Presenters.define(:some_pom) do
  plugin :some_plugin_with_js
end

Voom::Presenters.define(:another) do
  attach :some_pom
end

Render :another in browser and there will be a Javascript undefined error. Currently including the plugin in :another loads the files and clears the error, but this isn't ideal.

Expected behavior
The POM renders clean. JS from atached pom's plugins is included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions