// TODO: Listen to gateway events for anythign related to this channel\r
kiwi.model.Channel = kiwi.model.Panel.extend({\r
initialize: function (attributes) {\r
- var that = this,\r
- name = this.get("name") || "",\r
+ var name = this.get("name") || "",\r
members;\r
\r
this.view = new kiwi.view.Channel({"model": this, "name": name});\r
},\r
\r
initialize: function () {\r
- var cb = this; // TODO: Why is `that` not recognised in the below closure?\r
- that = this;\r
+ var that = this;\r
\r
kiwi.gateway.bind('change:nick', function () {\r
- $('.nick', cb.$el).text(this.get('nick'));\r
+ $('.nick', that.$el).text(this.get('nick'));\r
});\r
},\r
\r