Skip to content

Instantly share code, notes, and snippets.

@mattd
Created January 7, 2013 22:02
Show Gist options
  • Save mattd/4478914 to your computer and use it in GitHub Desktop.
Save mattd/4478914 to your computer and use it in GitHub Desktop.
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