Last active
December 11, 2015 20:59
-
-
Save Jon-Biz/4659389 to your computer and use it in GitHub Desktop.
Backbone Marrionette Initializer Example
This file contains 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
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