Commit f7ece0f5 authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #1167 from samccone/sjs/update-marionette

Update use of initializers
parents 79bba43d 88416c1d
...@@ -57,13 +57,13 @@ TodoMVC.module('TodoList', function (TodoList, App, Backbone, Marionette) { ...@@ -57,13 +57,13 @@ TodoMVC.module('TodoList', function (TodoList, App, Backbone, Marionette) {
} }
}); });
// TodoList Initializer // On App start
// -------------------- // --------------------
// //
// Get the TodoList up and running by initializing the mediator // Get the TodoList up and running by initializing the mediator
// when the the application is started, pulling in all of the // when the the application is started, pulling in all of the
// existing Todo items and displaying them. // existing Todo items and displaying them.
TodoList.addInitializer(function () { App.on('start', function () {
var controller = new TodoList.Controller(); var controller = new TodoList.Controller();
controller.router = new TodoList.Router({ controller.router = new TodoList.Router({
controller: controller controller: controller
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment