Skip to content

Instantly share code, notes, and snippets.

@Jon-Biz
Last active December 11, 2015 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jon-Biz/4659389 to your computer and use it in GitHub Desktop.
Save Jon-Biz/4659389 to your computer and use it in GitHub Desktop.
Backbone Marrionette Initializer Example
App.module("Midi", function(Midi){
Midi.addInitializer(function(options){
// Connect to Java interface here
}};
});
// In the Jasmine test code
describe("The Midi I/O module", function(){
beforeEach(function{}
var Midi = App.module("Midi");
Midi.start();
// Midi module initializers have been called
// rest of app hasn't been instantiated
);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment