Renamed ambiguous "self" variables to "context"

This commit is contained in:
Joel Collins 2019-03-21 20:02:26 +00:00
parent 9ea17ce560
commit c140d92b5f
4 changed files with 16 additions and 17 deletions

View file

@ -109,9 +109,9 @@ export default {
},
delCaptureConfirm: function(tag_string) {
var self = this;
var context = this
UIkit.modal.confirm('Permanantly delete capture?').then(function() {
self.delCaptureRequest()
context.delCaptureRequest()
}, function () {
console.log('Rejected.')
});
@ -142,9 +142,9 @@ export default {
},
delTagConfirm: function(tag_string) {
var self = this;
var context = this;
UIkit.modal.confirm(`Remove tag '${tag_string}'?`).then(function() {
self.delTagRequest(tag_string)
context.delTagRequest(tag_string)
}, function () {
console.log('Rejected.')
});