Merge branch 'development' of https://github.com/DaHispanicNinja/KiwiIRC into DaHispa...
[KiwiIRC.git] / client / src / models / query.js
1 _kiwi.model.Query = _kiwi.model.Channel.extend({
2 initialize: function (attributes) {
3 var name = this.get("name") || "",
4 members;
5
6 this.view = new _kiwi.view.Channel({"model": this, "name": name});
7 this.set({
8 "name": name,
9 "scrollback": []
10 }, {"silent": true});
11 },
12
13 isChannel: function () {
14 return false;
15 },
16
17 isQuery: function () {
18 return true;
19 }
20 });