You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
410 B
14 lines
410 B
var Backbone = require('backbone');
|
|
var SeriesCollection = require('../../Series/SeriesCollection');
|
|
|
|
module.exports = Backbone.Model.extend({
|
|
initialize : function(){
|
|
this.url = function(){
|
|
return this.collection.url + '/' + this.get('id');
|
|
};
|
|
},
|
|
parse : function(model){
|
|
model.series = SeriesCollection.get(model.seriesId);
|
|
return model;
|
|
}
|
|
}); |