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

Comments

Projects
None yet
4 participants
Contributor

imjoshdean commented Feb 5, 2013

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')
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?

Contributor

justinbmeyer commented Feb 6, 2013

There might be no reason.

Sent from my iPhone

On Feb 5, 2013, at 7:02 PM, David Luecke notifications@github.com 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.

Contributor

daffl commented Feb 20, 2013

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

daffl was assigned Mar 7, 2013

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.

Contributor

dispatchrabbi commented May 25, 2013

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