1 _kiwi
.model
.Panel
= Backbone
.Model
.extend({
2 initialize: function (attributes
) {
3 var name
= this.get("name") || "";
4 this.view
= new _kiwi
.view
.Panel({"model": this, "name": name
});
11 closePanel: function () {
15 this.view
= undefined;
19 var members
= this.get('members');
22 this.unset('members');
25 this.get('panel_list').remove(this);
31 // Alias to closePanel() for child objects to override
33 return this.closePanel();
36 isChannel: function () {
40 isQuery: function () {
44 isApplet: function () {
48 isServer: function () {
52 isActive: function () {
53 return (_kiwi
.app
.panels().active
=== this);