Permalink
Browse files

Reference for parent class

  • Loading branch information...
1 parent 15eaca6 commit 5a4b3cbb677d8869113b93056645cf9dda7d1f8a David committed Jan 7, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 assets/js/views/chat.js
View
@@ -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();

0 comments on commit 5a4b3cb

Please sign in to comment.