Skip to content
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

Observable list's length attribute does not update with live binding using dot separated accessors #267

Closed
imjoshdean opened this issue Feb 5, 2013 · 5 comments
Assignees
Labels
Milestone

Comments

@imjoshdean
Copy link
Contributor

Ran into this issue today wherein if I have an observable with an attribute that is an observable list, and I want to display the length of that list within a view, it would not update using the following syntax:

observable.attr('list.length')

A simple example can be seen here: http://jsfiddle.net/LRtZc/2/

A workaround for this is to use:

observable.attr('list').attr('length')
@daffl
Copy link
Contributor

daffl commented Feb 6, 2013

Ah looks like it is because of the special handling for the length attribute (it doesn't bubble).
@justinbmeyer What was the reason for that again?

@justinbmeyer
Copy link
Contributor

There might be no reason.

Sent from my iPhone

On Feb 5, 2013, at 7:02 PM, David Luecke [email protected] wrote:

Ah looks like it is because of the special handling for the length attribute (it doesn't bubble).
@justinbmeyer What was the reason for that again?


Reply to this email directly or view it on GitHub.

@daffl
Copy link
Contributor

daffl commented Feb 20, 2013

Found it: This is exactly what the pull request #112 was about.

@ghost ghost assigned daffl Mar 7, 2013
@daffl
Copy link
Contributor

daffl commented Mar 13, 2013

I think I'll just add tests to pull request #112 by @iamnoah and merge it in for 1.1.5 then.

@dispatchrabbi
Copy link
Contributor

I added a test for this, and the test is passing, so I'm going to close this issue as it doesn't seem to be an issue anymore.

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

No branches or pull requests

4 participants