Cristi Tudor
Cristi Tudor

Reputation: 25

Backbone error line 219 is undefined

Hy! I'm trying to use backbone, but no matter what i try, this message appears on my console:

TypeError: _ is undefined                                      backbone.js (line 219)
_.each(listenMethods, function(implementation, method) {

my code looks like this

<body>

<script src="js/external/jquery-1.11.0.js"></script>
<script src="js/external/backbone.js"></script>
<script src="js/external/underscore.js"></script>

<script>
// some text
</script>

</body>

I'm sure that this is the correct path to the files, because I used Dreamweaver's browse

Upvotes: 1

Views: 456

Answers (1)

David Buchbut
David Buchbut

Reputation: 158

switch the order of your libraries, have underscore before backbone

Upvotes: 3

Related Questions