thecodejack
thecodejack

Reputation: 13379

Not able to access ContainerView from a childView in init() method

I have different childViews of a ContainerView. Is it possible to access ContainerView from childView in init() method. I have tried using this.get('parentView') which doesnot work in init() method

Upvotes: 0

Views: 121

Answers (1)

Luke Melia
Luke Melia

Reputation: 8389

It should be available as this._parentView in init of the child view.

For example: http://jsfiddle.net/6p6XJ/192/

Upvotes: 1

Related Questions