-
Notifications
You must be signed in to change notification settings - Fork 176
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
fix - loss of context #322
Conversation
Failing tests due to old node. Do the tests pass on your machine? |
No, I can't npm install / yarn. |
I just pushed up a few changes to master that should upgrade the packages to their latest version (and fix travis). Try pulling down master and trying again. If that still doesn't work run Also can you add a test case for this? One that would fail without this patch applied? Thanks! |
Yarn gives me --- error An unexpected error occurred: "https://unpm.uberinternal.com/grunt-contrib-jshint/-/grunt-contrib-jshint-1.1.0.tgz: Request failed "401 Unauthorized"". --- |
I just removed the yarn.lock file from master. Feel free to go without it. |
Ok. This may be a little tricky to explain what happens. In the onGet() we push current "this.cid" to "var thises=[]" (actually a little more than that, but that was for console.log() convinience to check what happenes). Push to "thises" happens after So basically we expect "thises" to have 2 different cid's. After the fix we have correct cid's of view1 and view2. consoloe.log(thises) gives us: Let me know if anything is not clear. |
If I understand the issue correctly, we need 2 views with same bindings in same proto. |
Few minor fixes then lgtm |
I am not quite used to github, so I didn't notice your comments were actually for exact lines. So I misunderstood some. Let me know if now I got this right. |
Maybe this new version is easier to understand? |
Looks good to me. Thanks for adding the tests :) |
My pleasure, @akre54 , thanks for the beautiful lib! |
Fix proposed for #321