Renamed ambiguous "self" variables to "context"
This commit is contained in:
parent
9ea17ce560
commit
c140d92b5f
4 changed files with 16 additions and 17 deletions
|
|
@ -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.')
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue