feat(external_api): notify when api is disposed

This commit is contained in:
Gabriel-Tiberiu Imre-Lucaci 2019-02-25 17:34:54 +02:00 committed by Hristo Terezov
parent b6e2701991
commit 5739e1deaa
2 changed files with 2 additions and 1 deletions

View File

@ -534,6 +534,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
* @returns {void}
*/
dispose() {
this.emit('_willDispose');
this._transport.dispose();
this.removeAllListeners();
if (this._frame) {