Skip to content

link same array to DOM twice causes view data undefined #37

Open
@xusun

Description

@xusun

simple repro:
var fooData = [{ name: "a" }, { name: "b" }, { name: "c"}];
$("#foobody").link(fooData, $.template("#footemp"));

then call this again:
$("#foobody").link(fooData, $.template("#footemp"));

Then try to get the dom element and call $.view(this).data, it becomes undefined.

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