Skip to content

How to unlink when referenced node dont exist anymore.  #154

Description

@Deliber

Hi Boris, we are using jsRender and JSView for an entire portal exclusively based on templates and datalink to update the data, your libraries are excellent, congratulations!

But we have a problem: when some DOM nodes previously linked with JSView ( with this call $.link.someTemplate(parentNode, data) ) is removed, JsView maintain referenced memory for page life.

I have two question:

  1. If I link two times the same node, this reference overwrite the previous link directive?

  2. For remove reference (when I destroy one or more DOM node), the best way is $.observable().unobserve()?

There is a way for getting a reference (to unlink in second time certain DOM node) when the node dont exist anymore?

Thanks for the great work you are doing.

Thank you

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