Corrected the ChatWindow and View cleanup
This commit is contained in:
parent
d765f3b65c
commit
1b7b40763c
@ -104,6 +104,17 @@ package org.bigbluebutton.web.chat.views {
|
||||
override public function destroy():void {
|
||||
super.destroy();
|
||||
//view.dispose();
|
||||
view.messageList.dataProvider = null;
|
||||
|
||||
chatMessageService.sendMessageOnSuccessSignal.remove(onSendSuccess);
|
||||
chatMessageService.sendMessageOnFailureSignal.remove(onSendFailure);
|
||||
|
||||
view.messageList.removeEventListener(FlexEvent.UPDATE_COMPLETE, listUpdateCompleteHandler);
|
||||
view.sendButton.removeEventListener(MouseEvent.CLICK, sendButtonClickHandler);
|
||||
view.inputArea.removeEventListener(KeyboardEvent.KEY_DOWN, inputAreaKeyDownHandler);
|
||||
|
||||
userSession.userList.userRemovedSignal.remove(userRemoved);
|
||||
userSession.userList.userAddedSignal.remove(userAdded);
|
||||
view = null;
|
||||
}
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ package org.bigbluebutton.web.chat.views {
|
||||
override public function destroy():void {
|
||||
super.destroy();
|
||||
//view.dispose();
|
||||
chatMessagesSession.chatMessageChangeSignal.remove(newMessageReceived);
|
||||
view = null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user