1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

UI dependency graph cleanup

This commit is contained in:
kayone
2013-10-08 18:43:41 -07:00
parent 86ea33b638
commit 4948d0608b
87 changed files with 1119 additions and 735 deletions
+1 -2
View File
@@ -2,9 +2,8 @@
define(
[
'app',
'marionette'
], function (App, Marionette) {
], function (Marionette) {
return Marionette.ItemView.extend({
template: 'System/Logs/Files/ContentsViewTemplate'
});
+5 -4
View File
@@ -1,7 +1,7 @@
'use strict';
define(
[
'app',
'vent',
'marionette',
'backgrid',
'System/Logs/Files/FilenameCell',
@@ -13,7 +13,7 @@ define(
'System/Logs/Files/ContentsModel',
'Shared/Toolbar/ToolbarLayout',
'Shared/LoadingView'
], function (App,
], function (vent,
Marionette,
Backgrid,
FilenameCell,
@@ -57,11 +57,12 @@ define(
initialize: function () {
this.collection = new LogFileCollection();
App.vent.on(App.Commands.ShowLogFile, this._fetchLogFileContents, this);
App.vent.on(App.Events.CommandComplete, this._commandComplete, this);
vent.on(vent.Commands.ShowLogFile, this._fetchLogFileContents, this);
vent.on(vent.Events.CommandComplete, this._commandComplete, this);
this.listenTo(this.collection, 'sync', this._collectionSynced);
this.collection.fetch();
},
onShow: function () {
+3 -3
View File
@@ -1,9 +1,9 @@
'use strict';
define(
[
'app',
'vent',
'backgrid'
], function (App, Backgrid) {
], function (vent, Backgrid) {
return Backgrid.Row.extend({
className: 'log-file-row',
@@ -13,7 +13,7 @@ define(
},
_showContents: function () {
App.vent.trigger(App.Commands.ShowLogFile, { model: this.model });
vent.trigger(vent.Commands.ShowLogFile, { model: this.model });
}
});
});