Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leah Bueing - Rolodex #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Leah Bueing - Rolodex #40

wants to merge 3 commits into from

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