Asked By: Anonymous
I am having a crack at Backbone and decided to open a jsFiddle to play around.
Unfortunately, I keep getting this error being thrown:
Backbone.Model.extend is not a function
var Model = Backbone.Model.extend();
I got this piece of code from a Backbone tutorial.
What have I done wrong?
Answered By: Anonymous
You need to include
backbone.js as in this updated version of your fiddle:
From the fine manual:
Backbone’s only hard dependency is Underscore.js.