Created
June 19, 2013 23:08
-
-
Save brianfeister/5818934 to your computer and use it in GitHub Desktop.
Marionette App Definition
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
this.theAppName = (function(Backbone, Marionette) { | |
var App; | |
App = new Marionette.Application; | |
App.addRegions({ | |
headerRegion: "#header-region" | |
}); | |
App.addInitializer(function() { | |
return App.module("HeaderApp").start(); | |
}); | |
App.on("initialize:after", function() { | |
if (Backbone.history) { | |
return Backbone.history.start(); | |
} | |
}); | |
return App; | |
})(Backbone, Marionette); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment