Skip to content

Improvements for 6.0 #57

@justinbmeyer

Description

@justinbmeyer

CanJS 6 relies heavily on this module. While it works right now, it needs a few improvements:

  • Allow mutations to the document without having to use can-dom-mutate/node/. We can use isConnected in browsers that support it (currently everyone except edge).
  • Make sure it doesn't "leak" if the document gets disconnected without handlers being removed. It seemed like there were weakmap problems.

Other:

  • When using createTreeWalker, only walk elements that were actually listened for.
  • TreeWalker also gets all nodes instead of nodes that actually have listeners (making a big array)
  • We should setup some general performance tests

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