Skip to content

Leah Bueing - Rolodex#40

Open
lbueing wants to merge 3 commits intoAda-C6:masterfrom
lbueing:master
Open

Leah Bueing - Rolodex#40
lbueing wants to merge 3 commits intoAda-C6:masterfrom
lbueing:master

Conversation

@lbueing
Copy link

@lbueing lbueing commented Dec 12, 2016

No description provided.

Copy link

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not bad work, just a bit of messyness on how you're listening to events for the modal.

'click .contact-card': 'showModal'
},
showModal: function() {
var detailsTemplate = _.template($('#tmpl-contact-details').html());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works and is fine here, but it's best practice to only render things within the view, not things outside the view.

I'd suggest a better method is triggering an event and responding to it in the Rolodex View.

{
container.hide();
}
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, but should be done with a Backbone view & not regular jQuery, but it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants