initialize: function(options) { this.options = options this.router = options.router this.model.bind('change:displayName', this.render, this) this.avatar = Avatars.getAvatar({ jid: this.model.get('authorJid') }) this.avatar.on('change:url', this.renderAvatar, this) },
initialize: function(options) { _.bindAll(this, 'render') this.router = options.router this.options = options this.avatar = Avatars.getAvatar({ jid: this.options.channelJid }) this.avatar.on('change:url', this.renderAvatar, this) },
initialize: function(options) { this.options = options this.model.bind('change:displayName', this.renderDisplayName, this) this.model.bind('change:commentCount', this.renderCommentCount, this) this.determineCommentAbility() this.avatar = Avatars.getAvatar({ jid: this.model.get('authorJid') }) this.avatar.on('change:url', this.renderAvatar, this) },
initialize: function(options){ _.bindAll(this, 'render') this.model = new ChannelModel({ node: '/user/' + options.jid + '/posts' }) this.model.bind('loaded:meta', this.render, this) this.avatar = Avatars.getAvatar({ jid: options.jid }) log(options.jid, this.avatar, Avatars) this.avatar.on('change:url', this.renderAvatar, this) },