Skip to content

Instantly share code, notes, and snippets.

@edwardhotchkiss
Created August 17, 2013 04:07
Show Gist options
  • Save edwardhotchkiss/6255209 to your computer and use it in GitHub Desktop.
Save edwardhotchkiss/6255209 to your computer and use it in GitHub Desktop.
// configure
require.config({
baseUrl: './',
paths: {
'skeleton': 'skeleton'
},
shim: {
skeleton: {
exports: 'Skeleton',
deps: []
}
}
});
// initialize
require(['skeleton'], function(Skeleton) {
new Skeleton({ name : 'example2' });
});
=> this skeleton's name is "skeleton2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment