Created
May 21, 2013 16:17
-
-
Save netsuite/5621078 to your computer and use it in GitHub Desktop.
js: boilerplate
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
//Filename: boilerplate.js | |
define([ | |
// These are path alias that we configured in our bootstrap | |
'jquery', // lib/jquery/jquery | |
'underscore', // lib/underscore/underscore | |
'backbone' // lib/backbone/backbone | |
], function($, _, Backbone){ | |
// Above we have passed in jQuery, Underscore and Backbone | |
// They will not be accessible in the global scope | |
return {}; | |
// What we return here will be used by other modules | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment