Skip to content

Observer on property in parentView.parentView not working #3693

@ctimmerm

Description

@ctimmerm

Observing a property more than one level up in the parentView chain does not seem to work. This used to work in earlier release candidates.

App.View = Ember.ContainerView.extend({
  childViews: 'foo'.w(),

  foo: Ember.ContainerView.extend({
    childViews: 'bar'.w(),

    bar: Ember.ContainerView.extend({
      testDidChange: function() {         
        alert(this.get('parentView.parentView.test')); 
      }.observes('parentView.parentView.test').on('init')
    })
  })
});

jsbin

Ember.meta(App.view) shows that there are no chainWatchers and watching.test is undefined.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions