mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
UI dependency graph cleanup
This commit is contained in:
@@ -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 () {
|
||||
|
Reference in New Issue
Block a user