浏览代码

undefined, not null

j8
Philipp Hancke 12 年前
父节点
当前提交
cbbd98a177
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      muc.js

+ 1
- 1
muc.js 查看文件

23
         }
23
         }
24
 
24
 
25
         var join = $pres({to: this.myroomjid }).c('x', {xmlns: 'http://jabber.org/protocol/muc'});
25
         var join = $pres({to: this.myroomjid }).c('x', {xmlns: 'http://jabber.org/protocol/muc'});
26
-        if (password !== null) {
26
+        if (password !== undefined) {
27
             join.c('password').t(password);
27
             join.c('password').t(password);
28
         }
28
         }
29
         this.connection.send(join);
29
         this.connection.send(join);

正在加载...
取消
保存