focusAfterHide: null
});
- // If dialogue is closed during recording, do the following.
dialogue.after('visibleChange', function() {
var closed = !dialogue.get('visible'),
m = M.atto_recordrtc.commonmodule;
if (closed) {
+ // If dialogue is closed during recording, do the following.
window.clearInterval(m.countdownTicker);
if (m.mediaRecorder && m.mediaRecorder.state !== 'inactive') {
}
});
}
+
+ // Because the player uses ids to identify things (this should be fixed)
+ // we must make sure the dialogue contents only exist once in the DOM.
+ // Therefore, when a dialogue is closed, we must remove its contents.
+ this.getDialogue().set('bodyContent', '');
}
- });
+ }, this);
dialogue.on('click', function() {
this.centered();