2013-06-24 21:51:17 -07:00
|
|
|
'use strict';
|
2013-06-24 16:41:59 -07:00
|
|
|
define(
|
|
|
|
[
|
|
|
|
'backbone'
|
|
|
|
], function (Backbone) {
|
|
|
|
return Backbone.Model.extend({
|
2013-03-03 14:26:41 -08:00
|
|
|
|
2013-06-24 16:41:59 -07:00
|
|
|
mutators: {
|
|
|
|
seasonTitle: function () {
|
|
|
|
var seasonNumber = this.get('seasonNumber');
|
2013-03-03 14:26:41 -08:00
|
|
|
|
2013-06-24 16:41:59 -07:00
|
|
|
if (seasonNumber === 0) {
|
|
|
|
return 'Specials';
|
|
|
|
}
|
|
|
|
|
|
|
|
return 'Season ' + seasonNumber;
|
2013-03-03 14:26:41 -08:00
|
|
|
}
|
2013-06-24 16:41:59 -07:00
|
|
|
},
|
2013-03-03 14:26:41 -08:00
|
|
|
|
2013-06-24 16:41:59 -07:00
|
|
|
defaults: {
|
|
|
|
seasonNumber: 0
|
2013-03-03 14:26:41 -08:00
|
|
|
}
|
2013-06-24 16:41:59 -07:00
|
|
|
});
|
2013-03-02 11:13:23 -08:00
|
|
|
});
|
2013-06-18 18:02:23 -07:00
|
|
|
|