mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Replaced vent.on with this.listenTo vent
This commit is contained in:
@@ -67,8 +67,9 @@ define(
|
|||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.collection = new BlacklistCollection({ tableName: 'blacklist' });
|
this.collection = new BlacklistCollection({ tableName: 'blacklist' });
|
||||||
|
|
||||||
this.listenTo(this.collection, 'sync', this._showTable);
|
this.listenTo(this.collection, 'sync', this._showTable);
|
||||||
vent.on(vent.Events.CommandComplete, this._commandComplete, this);
|
this.listenTo(vent, vent.Events.CommandComplete, this._commandComplete);
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
|
@@ -59,8 +59,7 @@ define(
|
|||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.listenTo(this.model, 'change:monitored', this._setMonitoredState);
|
this.listenTo(this.model, 'change:monitored', this._setMonitoredState);
|
||||||
this.listenTo(vent, vent.Events.SeriesDeleted, this._onSeriesDeleted);
|
this.listenTo(vent, vent.Events.SeriesDeleted, this._onSeriesDeleted);
|
||||||
|
this.listenTo(vent, vent.Events.CommandComplete, this._commandComplete);
|
||||||
vent.on(vent.Events.CommandComplete, this._commandComplete, this);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
|
@@ -31,7 +31,7 @@ define(
|
|||||||
},
|
},
|
||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
vent.on(vent.Events.CommandComplete, this._commandComplete, this);
|
this.listenTo(vent, vent.Events.CommandComplete, this._commandComplete);
|
||||||
},
|
},
|
||||||
|
|
||||||
onRender: function(){
|
onRender: function(){
|
||||||
|
@@ -61,7 +61,7 @@ define(
|
|||||||
this.collection = new LogCollection();
|
this.collection = new LogCollection();
|
||||||
|
|
||||||
this.listenTo(this.collection, 'sync', this._showTable);
|
this.listenTo(this.collection, 'sync', this._showTable);
|
||||||
vent.on(vent.Events.CommandComplete, this._commandComplete, this);
|
this.listenTo(vent, vent.Events.CommandComplete, this._commandComplete);
|
||||||
},
|
},
|
||||||
|
|
||||||
onRender: function () {
|
onRender: function () {
|
||||||
|
Reference in New Issue
Block a user