Merge pull request #9559 from edx/peter-fogg/remove-bind-all
Remove unnecessary bindAll calls.
This commit is contained in:
@@ -30,8 +30,6 @@
|
||||
this.teamsDetailUrl = options.teamParams.teamsDetailUrl;
|
||||
this.action = options.action;
|
||||
|
||||
_.bindAll(this, 'cancelAndGoBack', 'createOrUpdateTeam');
|
||||
|
||||
if (this.action === 'create') {
|
||||
this.teamModel = new TeamModel({});
|
||||
this.teamModel.url = this.teamsUrl;
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
this.teamMembershipsUrl = options.teamMembershipsUrl;
|
||||
this.showEditButton = options.showEditButton;
|
||||
this.topicID = options.topicID;
|
||||
_.bindAll(this, 'render', 'joinTeam','editTeam', 'getUserTeamInfo');
|
||||
this.listenTo(this.model, "change", this.render);
|
||||
},
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
initialize: function(options) {
|
||||
TeamsView.prototype.initialize.call(this, options);
|
||||
_.bindAll(this, 'browseTeams', 'searchTeams', 'showCreateTeamForm');
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
||||
Reference in New Issue
Block a user