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