Files
NOTE: This is a private utility class for internal use by the framework. Don't rely on its existence.
Restores compatibility for the old Ext.Router.draw
syntax. This needs to be here because apps often include
routes.js just after app.js, so this is our only opportunity to hook this in. There is a small piece of code
inside Application's onDependenciesLoaded that sets up the other end of this.
Application's onDependenciesLoaded has a deprecated-wrapped line that calls this. Basic idea is that once an
app has been instantiated we set that at Ext.Router's appInstance
and then redirect any calls to
Ext.Router.draw to that app's Router. We keep a drawStack
above so that we can call Ext.Router.draw one or
more times before the application is even instantiated and it will simply link it up once everything is
present.