mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Better require
This commit is contained in:
parent
23859a1c55
commit
279f8b5d73
3 changed files with 8 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
|||
"use strict";
|
||||
define(['app'], function () {
|
||||
|
||||
NzbDrone.Shared.Footer.Model = Backbone.Model.extend({
|
||||
return Backbone.Model.extend({
|
||||
defaults: {
|
||||
'version' : '0.0.0.0',
|
||||
'buildDate' : Date.create()
|
||||
|
@ -15,6 +15,4 @@ define(['app'], function () {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
return NzbDrone.Shared.Footer.Model;
|
||||
});
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
"use strict";
|
||||
define(['app',
|
||||
'Shared/Footer/Model'], function () {
|
||||
NzbDrone.Shared.Footer.View = Backbone.Marionette.ItemView.extend({
|
||||
'Shared/Footer/Model'], function (App, FooterModel) {
|
||||
return Backbone.Marionette.ItemView.extend({
|
||||
|
||||
template: 'Shared/Footer/Template',
|
||||
|
||||
initialize: function () {
|
||||
this.model = new NzbDrone.Shared.Footer.Model();
|
||||
this.model = new FooterModel();
|
||||
this.model.set('version', NzbDrone.Constants.Version);
|
||||
this.model.set('buildDate', NzbDrone.Constants.BuildDate);
|
||||
}
|
||||
});
|
||||
|
||||
return new NzbDrone.Shared.Footer.View();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue