cleaned up some jslint errors

This commit is contained in:
Keivan Beigi 2013-05-01 15:42:30 -07:00
commit 50fd2f77b1
22 changed files with 65 additions and 42 deletions

View file

@ -1,8 +1,8 @@
'use strict';
define(['app'], function (app) {
define(['app'], function () {
NzbDrone.Series.Index.EmptyView = Backbone.Marionette.CompositeView.extend({
template: 'Series/Index/EmptyTemplate'
});
});
});

View file

@ -1,3 +1,4 @@
"use strict";
Backgrid.AirDateCell = Backgrid.Cell.extend({
className: "air-date-cell",
@ -9,4 +10,4 @@ Backgrid.AirDateCell = Backgrid.Cell.extend({
return this;
}
});
});

View file

@ -1,3 +1,4 @@
"use strict";
Backgrid.SeriesStatusCell = Backgrid.Cell.extend({
className: "series-status-cell",
@ -19,4 +20,4 @@ Backgrid.SeriesStatusCell = Backgrid.Cell.extend({
return this;
}
});
});

View file

@ -1,4 +1,5 @@
define(['app'], function () {
"use strict";
define(['app'], function () {
NzbDrone.Series.SeasonModel = Backbone.Model.extend({
mutators: {

View file

@ -1,4 +1,5 @@
define(['app', 'Series/SeriesModel'], function () {
"use strict";
define(['app', 'Series/SeriesModel'], function () {
NzbDrone.Series.SeriesCollection = Backbone.Collection.extend({
url : NzbDrone.Constants.ApiRoot + '/series',
model: NzbDrone.Series.SeriesModel,
@ -10,4 +11,4 @@
return model.get(this.defaultSortKey);
}
});
});
});

View file

@ -47,11 +47,7 @@ define(['app', 'Quality/QualityProfileCollection', 'AddSeries/RootFolders/RootFo
return "http://trakt.tv/show/" + this.get('titleSlug');
},
isContinuing : function () {
if (this.get('status') === 0) {
return true;
}
return false;
return this.get('status') === 0;
},
statusText : function () {
if (this.get('status') === 0) {