Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Marionette - initialize event not firing

I'm have a basic Marionette app that looks like:

var App = new Marionette.Application();

App.on('initialize:after', function () {
    console.log('init');
});

App.start();

When I run this nothing gets printed to the console. However, if I add

App.on('start', function () {
    console.log('start');
});

then it prints start. Does anyone know how to get the former to work?

like image 671
serverpunk Avatar asked Jun 29 '14 22:06

serverpunk


1 Answers

Which version of marionette are you using?

initialize:after has been renamed to start after version 1.0.0. See the changelog.

like image 58
Ramon Caldeira Avatar answered Oct 19 '22 18:10

Ramon Caldeira