We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c21577 commit 632c1e0Copy full SHA for 632c1e0
webcompat/static/js/lib/models/issue.js
@@ -121,10 +121,10 @@
121
data: JSON.stringify(labelsToUpdate),
122
type: 'POST',
123
url: '/api/issues/' + this.get('number') + '/labels',
124
- success: function(response) {
+ success: _.bind(function(response) {
125
//update model after success
126
- self.set('labels', response);
127
- },
+ this.set('labels', response);
+ }, this),
128
error: function() {
129
var msg = 'There was an error setting labels.';
130
wcEvents.trigger('flash:error', {message: msg, timeout: 2000});
0 commit comments