Created
August 12, 2012 17:06
-
-
Save tbranyen/3332969 to your computer and use it in GitHub Desktop.
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
//This is the line from the stack-trace that's causing the error: | |
//backbone.js L39 | |
if (!_ && (typeof require !== 'undefined')) _ = require('underscore'); |
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
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