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

abstract mobile interactions js #2221

Merged
merged 1 commit into from
Feb 19, 2014

Conversation

samccone
Copy link
Contributor

DRY up repeated code and simplify logic.

function responsiveAction(event, mediaCondition, react) {
if (!window.matchMedia(mediaCondition).matches) {
return;
}

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

DRY up repeated code and simplify logic.
@samccone
Copy link
Contributor Author

all updated @ErisDS

ErisDS added a commit that referenced this pull request Feb 19, 2014
@ErisDS ErisDS merged commit a791db1 into TryGhost:master Feb 19, 2014
@samccone samccone deleted the sjs/clean-up-mobile-actions branch February 19, 2014 21:15
@samccone
Copy link
Contributor Author

🎉

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.

5 participants