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

@ -73,11 +73,10 @@ export default {
},
recalibrateConfirm: function() {
self = this;
context = this
this.modalConfirm('Start recalibration? This may take a while, and the microscope will be locked during this time.')
.then(function() {
self.recalibrateRequest()
context.recalibrateRequest()
}, function () {
console.log('Rejected recalibration.')
})