Skip to content

Ensure that the framework does not mutate VNodes and WNodes #289

@agubler

Description

@agubler

Enhancement

VNode and WNode are decorated with a bind property that holds the instance of the widget that originally returned it from its render. This is problematic as it inadvertently gives access to widget instances by accessing the bind property, widget instances should not be exposed to end users as instance management is entirely controlled by the framework's vdom renderer.

Considerations:

  • bind is used to add the DOMNode to the node handler which powers DOM based metas
  • bind is used to auto bind property functions to the widget instance that created the DNode

The WNode is also modified when a widget registry item is available, with the widgetConstructor being updated to reference the registry item.

The goal is to ensure that VNodes and WNodes should not be mutated by the framework.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeIndicates the issue/pull request would result in a breaking changeenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions