Skip to content

Instantly share code, notes, and snippets.

@gerzhan
Forked from xjamundx/jqmobibackbone.js
Created August 20, 2013 01:30
Show Gist options
  • Select an option

  • Save gerzhan/6276126 to your computer and use it in GitHub Desktop.

Select an option

Save gerzhan/6276126 to your computer and use it in GitHub Desktop.
require.config({
paths: {
jquery: "lib/jqMobi.min",
underscore: "http://underscorejs.org/underscore-min",
backbone: "http://backbonejs.org/backbone"
},
shim: {
'backbone': {
deps: ['underscore', 'jquery'],
exports: 'Backbone',
init: function() {
Backbone.$ = window.$;
}
},
'underscore': {
exports: '_'
}
}
});
define(function (require) {
var Backbone = require('backbone')
// do something cool...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment