mirror of https://github.com/Radarr/Radarr
Replaced vent.on with this.listenTo vent
This commit is contained in:
parent
f5d46ffcd2
commit
3735736bbc
|
@ -67,8 +67,9 @@ define(
|
|||
|
||||
initialize: function () {
|
||||
this.collection = new BlacklistCollection({ tableName: 'blacklist' });
|
||||
|
||||
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 () {
|
||||
|
|
|
@ -59,8 +59,7 @@ define(
|
|||
initialize: function () {
|
||||
this.listenTo(this.model, 'change:monitored', this._setMonitoredState);
|
||||
this.listenTo(vent, vent.Events.SeriesDeleted, this._onSeriesDeleted);
|
||||
|
||||
vent.on(vent.Events.CommandComplete, this._commandComplete, this);
|
||||
this.listenTo(vent, vent.Events.CommandComplete, this._commandComplete);
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
|
|
|
@ -31,7 +31,7 @@ define(
|
|||
},
|
||||
|
||||
initialize: function () {
|
||||
vent.on(vent.Events.CommandComplete, this._commandComplete, this);
|
||||
this.listenTo(vent, vent.Events.CommandComplete, this._commandComplete);
|
||||
},
|
||||
|
||||
onRender: function(){
|
||||
|
|
|
@ -61,7 +61,7 @@ define(
|
|||
this.collection = new LogCollection();
|
||||
|
||||
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 () {
|
||||
|
|
Loading…
Reference in New Issue