{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/da743704e03861e08cdfa0334627ad3a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"da743704e03861e08cdfa0334627ad3a","url":"https://api.github.com/users/jslaybaugh","login":"jslaybaugh","id":306883},"milestone":null,"labels":[{"name":"1.3.0","color":"e10c02","url":"https://api.github.com/repos/SteveSanderson/knockout/labels/1.3.0"}],"updated_at":"2011-10-27T21:21:47Z","assignee":null,"comments":4,"closed_at":"2011-10-27T21:21:47Z","url":"https://api.github.com/repos/SteveSanderson/knockout/issues/133","body":"Check out the fiddle at http://jsfiddle.net/jslaybaugh/KBqsA/\r\n\r\nI have an object that is a business with multiple member objects inside it.  There are type lookups for the business level and the member level.  To create the depdendentObservables for the Members, I loop through it with jQuery.each (although I'm sure there's a better way).  Anyway, when I was testing, I found that it was working by outputting ko.toJS(viewModel) to the console and seeing that the type was being updated, but the view wasnt reflecting it.  Ultimately, through trial and error, I realized the issue reflected on the fiddle.  If the span that prints the value is declared in the HTML markup prior to the control that writes to the value, then it doesnt get updated in the view.  But it does if its after the control.  (note the text after the select gets updated, but not the code prior).  And this only happens in the nested objects.  Even though the parent object has the exact same logic, it works as expected. \r\n\r\nBtw, if there is a better way of creating the dependentObservables besides jQuery.each, I'd love to know what it is.  Thanks!!","html_url":"https://github.com/SteveSanderson/knockout/issues/133","title":"Strange issue with nested dependentObservables update the model but not the view","number":133,"id":1253478,"created_at":"2011-07-20T00:21:38Z"},"action":"closed"}