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