I have the following code that is being included (the code is generated from CoffeeScript):
console.log('test1');
application.module('core', function(module, application, Backbone, Marionette, $, _) {
console.log('test2');
return module.TodoItem = (function(_super) {
__extends(TodoItem, _super);
function TodoItem() {
return TodoItem.__super__.constructor.apply(this, arguments);
}
return TodoItem;
})(Backbone.Model);
});
Looking at https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.application.module.md is seems to me that this code should work however is seem like the function for the core module never gets executed (test1 prints to the console however test2 does not). Is there something I am missing?