Replaced vent.on with this.listenTo vent

pull/3113/head
Mark McDowall 11 years ago
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…
Cancel
Save