No need to set num_unread, it has a default value.
This commit is contained in:
parent
184f08157c
commit
bab80a3234
@ -163,10 +163,7 @@
|
|||||||
ChatBox: {
|
ChatBox: {
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
if (this.get('id') === 'controlbox') {
|
if (this.get('id') === 'controlbox') {
|
||||||
this.set({
|
this.set({'time_opened': moment(0).valueOf()});
|
||||||
'time_opened': moment(0).valueOf(),
|
|
||||||
'num_unread': 0
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
this.__super__.initialize.apply(this, arguments);
|
this.__super__.initialize.apply(this, arguments);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user