emberjs/ember.js — pull request #833 by ryanto (2012-05-18 14:54:15+00:00)
Title: View State passes stateManager to view during enter

I am creating a stateManager with ViewStates/views. When a link is clicked in the view I would like the stateManager to transition to another state. This PR will pass the stateManager into the view so that the view can send actions back to the manager.

There are other ways to accomplish this, but I think it makes sense for ViewState to do this in the enter function. Without this it might encourage people to have views referencing state managers with global paths.