Skip to content

Instantly share code, notes, and snippets.

@tbranyen
Created August 12, 2012 17:06
Show Gist options
  • Save tbranyen/3332969 to your computer and use it in GitHub Desktop.
Save tbranyen/3332969 to your computer and use it in GitHub Desktop.
//This is the line from the stack-trace that's causing the error:
//backbone.js L39
if (!_ && (typeof require !== 'undefined')) _ = require('underscore');
requirejs.config({
shim: {
'backbone': {
deps: ['underscore', 'jquery'],
exports: "Backbone"
},
'underscore': {
exports: "_"
}
},
paths: {
jquery: 'support/jquery',
underscore: 'support/underscore',
backbone: 'support/backbone'
}
});
define(['underscore', 'backbone'], function (_, Backbone) {
//Sup
console.log(Backbone);
console.log(_);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment