mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
[Style] Fix style bugs introduced in #1374
This commit is contained in:
@ -64,7 +64,8 @@ define(
|
||||
// input is asynchronous.
|
||||
var deferred = this.$q.defer(),
|
||||
self = this,
|
||||
overlay;
|
||||
overlay,
|
||||
handleEscKeydown;
|
||||
|
||||
// Confirm function; this will be passed in to the
|
||||
// overlay-dialog template and associated with a
|
||||
@ -84,11 +85,11 @@ define(
|
||||
self.dismissOverlay(overlay);
|
||||
}
|
||||
|
||||
function handleEscKeydown(event){
|
||||
if (event.keyCode === 27) {
|
||||
cancel();
|
||||
}
|
||||
}
|
||||
handleEscKeydown = function (event) {
|
||||
if (event.keyCode === 27) {
|
||||
cancel();
|
||||
}
|
||||
};
|
||||
|
||||
// Add confirm/cancel callbacks
|
||||
model.confirm = confirm;
|
||||
|
Reference in New Issue
Block a user