fix voice dialog cancellation

This commit is contained in:
Luke Pulverenti 2016-07-11 00:59:35 -04:00
parent 862f95b5a9
commit 91c2c391a4

View File

@ -166,11 +166,11 @@ define(['dialogHelper', './voicereceiver', './voiceprocessor', 'globalize', 'emb
currentDialog = dlg;
dlg.addEventListener('close', function () {
voicereceiver.cancel();
currentDialog = null;
});
function onCancelClick() {
voicereceiver.cancel();
dialogHelper.close(dlg);
}