2013-04-24 05:56:51 +00:00
|
|
|
"use strict";
|
2013-03-03 22:42:26 +00:00
|
|
|
define(['app'], function () {
|
|
|
|
NzbDrone.Series.EpisodeModel = Backbone.Model.extend({
|
2013-03-02 19:13:23 +00:00
|
|
|
|
|
|
|
mutators: {
|
2013-05-01 00:25:33 +00:00
|
|
|
bestDateString : function () {
|
|
|
|
return bestDateString(this.get('airDate'));
|
|
|
|
},
|
|
|
|
paddedEpisodeNumber: function () {
|
|
|
|
return this.get('episodeNumber');
|
|
|
|
}
|
2013-03-02 19:13:23 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
defaults: {
|
|
|
|
seasonNumber: 0
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|