2013-06-25 01:41:59 +02:00
|
|
|
|
'use strict';
|
|
|
|
|
define(
|
|
|
|
|
[
|
|
|
|
|
'backbone'
|
|
|
|
|
], function (Backbone) {
|
|
|
|
|
return Backbone.Model.extend({
|
2013-03-03 23:26:41 +01:00
|
|
|
|
|
2013-06-25 01:41:59 +02:00
|
|
|
|
mutators: {
|
|
|
|
|
seasonTitle: function () {
|
|
|
|
|
var seasonNumber = this.get('seasonNumber');
|
2013-03-03 23:26:41 +01:00
|
|
|
|
|
2013-06-25 01:41:59 +02:00
|
|
|
|
if (seasonNumber === 0) {
|
|
|
|
|
return 'Specials';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return 'Season ' + seasonNumber;
|
2013-03-03 23:26:41 +01:00
|
|
|
|
}
|
2013-06-25 01:41:59 +02:00
|
|
|
|
},
|
2013-03-03 23:26:41 +01:00
|
|
|
|
|
2013-06-25 01:41:59 +02:00
|
|
|
|
defaults: {
|
|
|
|
|
seasonNumber: 0
|
2013-03-03 23:26:41 +01:00
|
|
|
|
}
|
2013-06-25 01:41:59 +02:00
|
|
|
|
});
|
2013-03-02 20:13:23 +01:00
|
|
|
|
});
|
2013-06-19 03:02:23 +02:00
|
|
|
|
|