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

titleCase unusable when required using destructured assignment #41

Closed
kevinsawicki opened this issue Jul 1, 2013 · 4 comments
Closed
Labels

Comments

@kevinsawicki
Copy link
Contributor

Input

{titleCase} = require 'humanize-plus'
titleCase('test')

Output

TypeError: Object object has no method 'capitalize'
    at doTitleCase (/Users/kevin/repos/test/node_modules/humanize-plus/public/src/humanize.js:414:71)
    at Humanize.titlecase.Humanize.titleCase (/Users/kevin/repos/test/node_modules/humanize-plus/public/src/humanize.js:427:12)
@hijonathan
Copy link
Contributor

Thanks for catching this. Sounds like we need to bind internal methods to Humanize.

aaylward added a commit that referenced this issue Jul 1, 2013
aaylward added a commit that referenced this issue Jul 1, 2013
Fixing context bugs via direct assignment. Fixes #41.
@hijonathan
Copy link
Contributor

@kevinsawicki any chance we could trade a feature request for some Github 👕?

@b-ash
Copy link
Contributor

b-ash commented Jul 1, 2013

🍖

@kevinsawicki
Copy link
Contributor Author

@hijonathan I think I can arrange that, shoot me an e-mail kevin@github.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants