fully working add series

This commit is contained in:
kay.one 2013-06-30 12:57:26 -07:00
commit 96810c489c
21 changed files with 295 additions and 314 deletions

View file

@ -4,7 +4,7 @@ define(
'backbone',
'Series/SeriesModel'
], function (Backbone, SeriesModel) {
var collection = Backbone.Collection.extend({
var Collection = Backbone.Collection.extend({
url : window.ApiRoot + '/series',
model: SeriesModel,
@ -18,5 +18,8 @@ define(
}
});
return new collection();
var collection = new Collection();
collection.fetch();
return collection;
});