muc: Uncaught TypeError: Cannot read property 'split' of undefined
ChALkeR opened this issue · comments
derived: {
displayName: {
deps: ['name', 'jid'],
fn: function fn() {
var disp = this.name;
if (!disp) disp = this.jid.jid;
return disp.split('@')[0];
}
},
Fails on disp.split('@')[0]
— there seems to be no .jid
property in the JID object. There are .bare
, .domain
, .full
, and .local
, though.
Теперь всё работает. Тикет можно закрывать =).