mac389
mac389

Reputation: 3133

Backbone.js doesn't recognize a variable

I'm trying to use Backbone.js in a web page.

When I link to the .js file for version 0.9.9 I get the following error at line 225.

 TypeError _ is undefined
 _.extend(Backbone,Events);

However, _ is defined at line 40

  var _ = root._;

And that variable declaration isn't inside a loop or conditional statement.

Why doesn't line 225 recognize what line 40 declared?

Upvotes: 1

Views: 178

Answers (1)

zzzzBov
zzzzBov

Reputation: 179284

Backbone.js is dependent on Underscore.js

Upvotes: 1

Related Questions