DRY up scrollable pattern

Switch to using gutter class instead of id since there is potentially
more than one usage on the page.
This commit is contained in:
lilia 2015-03-09 14:50:50 -07:00
parent a72ea7966d
commit c73f4d71a7
4 changed files with 29 additions and 24 deletions

View file

@ -55,6 +55,7 @@
Whisper.InboxView = Whisper.View.extend({
template: $('#inbox').html(),
className: 'inbox',
initialize: function () {
this.render();
@ -64,7 +65,7 @@
this.openConversation.bind(this, null));
this.inbox = new Whisper.ConversationListView({
el : this.$el.find('#contacts'),
el : this.$el.find('.conversations'),
collection : bg.inbox
}).render();