Skip to content

hyper-component is not adding extensions to opal-jquery Element class #43

Closed

Description

@catmando

The desired state (that used to work) was if you required opal-jquery before loading hyper-component, then hyper-component would extend the opal-jquery Element class like this:

Element.class_eval do
  ... add stuff
end if Object.const_defined?('Element')

Between the new hyperstack loader, and opal 0.11 require mechanism Element is not getting defined until too late.

I can't find a fix, so will just make it so you can require this code manually after requiring jQuery.

Keep problem open unless we are sure a better solution can't be found.

Activity

  1. added a commit that references this issue on Oct 8, 2018
    245235e
  2. added 3 commits that reference this issue on Sep 2, 2026
    db3f2e9
    15f32cc
    c6c1c90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions