Skip to content

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

@catmando

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.

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