Created
January 7, 2013 22:02
-
-
Save mattd/4478914 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'routers/dashboard/index', | |
'controllers/dashboard/index', | |
'views/layouts/dashboard/module' | |
], function ( | |
DashboardIndexRouter, | |
DashboardIndexController, | |
DashboardModuleLayout | |
) { | |
"use strict"; | |
return { | |
startWithParent: false, | |
define: function () { | |
this.addInitializer(function () { | |
var layout = new DashboardModuleLayout(); | |
this.config.app.canvas.show(layout); | |
new DashboardIndexRouter({ | |
controller: new DashboardIndexController({ | |
region: layout.content | |
}) | |
}); | |
}); | |
} | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment