Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xusun opened this issue Nov 2, 2011 · 0 comments
Open

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

xusun opened this issue Nov 2, 2011 · 0 comments

Comments

@xusun
Copy link

xusun commented Nov 2, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant