Replaced vent.on with this.listenTo vent

This commit is contained in:
Mark McDowall 2014-06-24 16:55:21 -07:00
parent f5d46ffcd2
commit 3735736bbc
4 changed files with 5 additions and 5 deletions

View File

@ -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 () {

View File

@ -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 () {

View File

@ -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(){

View File

@ -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 () {