\r
// Keep track of the active panel. Channel/query/server or applet\r
fn.bind('active', function (new_active_panel) {\r
+ var previous_panel = active_panel;\r
active_panel = new_active_panel;\r
+\r
+ _kiwi.global.events.emit('panel:active', {previous: previous_panel, active: active_panel});\r
});\r
\r
return fn;\r
"scrollback": [],\r
"name": name\r
}, {"silent": true});\r
+\r
+ _kiwi.global.events.emit('panel:created', {panel: this});\r
},\r
\r
closePanel: function () {\r
+ _kiwi.global.events.emit('panel:close', {panel: this});\r
+\r
if (this.view) {\r
this.view.unbind();\r
this.view.remove();\r