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

Non-invasive solution for #138 covered with mocha:spec #139

Merged
merged 2 commits into from
Dec 20, 2012

Conversation

tiraeth
Copy link
Contributor

@tiraeth tiraeth commented Dec 13, 2012

Solution for #138. What's best (and I hope you're happy to see it) I have included a unit test and will try to make it a habit when sending PRs.

Usage: Provide options.yLabelFormat callback accepting original label, prefix, and suffix and return a formatted label. By default, the body of Morris.Grid.yLabelFormat is put there.

Cheers!

@adampope
Copy link

Awesome, that's exactly what I was after! Hope to see this merged soon :)

@oesmith oesmith merged commit 24f11c6 into morrisjs:master Dec 20, 2012
@oesmith
Copy link
Contributor

oesmith commented Dec 20, 2012

Merged! 👍

I've removed the prefix and suffix options from the formatter callback -- there's little point in pushing user-supplied data back in the callback arguments when it can be whatever the user wants within the callback itself!

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