can.camelize #513

Closed
whitecolor opened this Issue Oct 25, 2013 · 3 comments

Comments

Projects
None yet
3 participants
@whitecolor
Contributor

whitecolor commented Oct 25, 2013

I wonder why can.camelize was removed from can utils?

@justinbmeyer

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Oct 25, 2013

Contributor

It is not used anywhere.

Sent from my iPhone

On Oct 25, 2013, at 8:03 AM, Alex Osh notifications@github.com wrote:

I wonder why can.camelize was removed from can utils?


Reply to this email directly or view it on GitHub.

Contributor

justinbmeyer commented Oct 25, 2013

It is not used anywhere.

Sent from my iPhone

On Oct 25, 2013, at 8:03 AM, Alex Osh notifications@github.com wrote:

I wonder why can.camelize was removed from can utils?


Reply to this email directly or view it on GitHub.

@whitecolor

This comment has been minimized.

Show comment
Hide comment
@whitecolor

whitecolor Oct 25, 2013

Contributor

Maybe it could be used there #512

Contributor

whitecolor commented Oct 25, 2013

Maybe it could be used there #512

@imjoshdean

This comment has been minimized.

Show comment
Hide comment
@imjoshdean

imjoshdean Oct 30, 2013

Contributor

Yeah, #512 is a good reason to have it there (plus just because it wasn't used by the framework doesn't mean someone wasn't using it).

I'm going to add in a can.camelize back into can/util/string.js and as an added bonus you'll get the reverse action as well: can.hyphenate!

can.hyphenate('fooBarBaz'); // => foo-bar-baz
Contributor

imjoshdean commented Oct 30, 2013

Yeah, #512 is a good reason to have it there (plus just because it wasn't used by the framework doesn't mean someone wasn't using it).

I'm going to add in a can.camelize back into can/util/string.js and as an added bonus you'll get the reverse action as well: can.hyphenate!

can.hyphenate('fooBarBaz'); // => foo-bar-baz

@ghost ghost assigned imjoshdean Oct 30, 2013

imjoshdean added a commit that referenced this issue Oct 30, 2013

Merge pull request #520 from bitovi/512-camelCaseComponent
Fixes #512 #513, sees the glorious return of can.camelize and his trusty sidekick, can.hyphenate

@imjoshdean imjoshdean closed this Oct 30, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment