I am trying out Spine.js and want to configure it to interact with my app on server side. Here is the code:
var Album = Spine.Model.sub();
Album.configure("Album", "public");
Album.extend(Spine.Model.Ajax);
The last line causes this error:
uncaught exception: extend(obj) requires obj
What is the problem here? It's a code from the tutorial, except they use Task
and I use Album
.