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

Moves MobileOnlyExpandable initialization out of MobileCarousel #711

Merged
merged 1 commit into from
Jul 6, 2015

Conversation

anselmbradford
Copy link
Member

Moves MobileOnlyExpandable initialization out of MobileCarousel to provide better separation of responsibilities.

Changes

  • Moves MobileOnlyExpandable initialization out of MobileCarousel.
  • Moves hardcoded MobileCarousel breakpoint value outside of constructor.
  • Ignores ESLint no-new rule errors.

Testing

  • All should function the same.

Review

@@ -14,7 +14,8 @@ function init() {
return;
}

var mobileCarousel = new MobileCarousel();
var breakpointPx = 599;
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't being reused, might as well just include it as a straight value in the argument below right?

Copy link
Member Author

Choose a reason for hiding this comment

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

I kept it as a variable to self-document it a bit better since it can be hard to tell what the straight-up number is setting. Could be a code comment too. Fixed in 9c28a42

@KimberlyMunoz
Copy link
Contributor

👍

anselmbradford added a commit that referenced this pull request Jul 6, 2015
Moves MobileOnlyExpandable initialization out of MobileCarousel
@anselmbradford anselmbradford merged commit 5ad55a6 into flapjack Jul 6, 2015
@anselmbradford anselmbradford deleted the move-mobile-only-expandable branch July 6, 2015 16:20
@anselmbradford anselmbradford mentioned this pull request Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants