Skip to content

Commit

Permalink
Reference for parent class
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed Jan 7, 2012
1 parent 15eaca6 commit 5a4b3cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion assets/js/views/chat.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
var ChatView = Backbone.View.extend({
initialize: function() {
initialize: function(modelRef) {
this.model = modelRef;
this.el = ich.chat();
this.render();
},

updateStatus: function(newStatus) {
this.$('#chat-bar').html(ich.titlebar({title: this.model.get('name')}));
},

render: function() {
$('.content').html(this.el);
this.handleInput();
Expand Down

0 comments on commit 5a4b3cb

Please sign in to comment.