Commit 8fe7fd2e authored by JC Brand's avatar JC Brand

minimize: Use Backbone.Model's `default` attribute

parent 4f94a1f1
...@@ -459,12 +459,10 @@ ...@@ -459,12 +459,10 @@
_converse.MinimizedChatsToggle = Backbone.Model.extend({ _converse.MinimizedChatsToggle = Backbone.Model.extend({
initialize: function () { defaults: {
this.set({ 'collapsed': false,
'collapsed': this.get('collapsed') || false, 'num_minimized': 0,
'num_minimized': this.get('num_minimized') || 0, 'num_unread': 0
'num_unread': this.get('num_unread') || 0
});
} }
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment