소스 검색

Bugfix. "ev" isn't necessarily defined.

JC Brand 10 년 전
부모
커밋
35928308c8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -1051,7 +1051,7 @@
             },
 
             clearChatRoomMessages: function (ev) {
-                ev.stopPropagation();
+                if (typeof ev !== "undefined") { ev.stopPropagation(); }
                 var result = confirm(__("Are you sure you want to clear the messages from this room?"));
                 if (result === true) {
                     this.$el.find('.chat-content').empty();