Skip to content

Conversation

@gaearon
Copy link
Collaborator

@gaearon gaearon commented Jun 8, 2014

Fixes #932

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: no space after function

@sophiebits
Copy link
Collaborator

Looks pretty good to me. After getting camelize synced out let's do camelizeStyleName instead of unhyphenateStyleName.

@gaearon
Copy link
Collaborator Author

gaearon commented Jun 10, 2014

I updated the code.

@zpao
Copy link
Member

zpao commented Jun 17, 2014

camelize does exist already. I can sync it out. It's very similar to what you have here :)

zpao added a commit that referenced this pull request Jun 17, 2014
Copy link
Member

Choose a reason for hiding this comment

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

Do you need mocks?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah right. I only found spyOn later and tried using mocks at first. Will remove.

@sophiebits
Copy link
Collaborator

What do you think about also warning if someone writes Ms instead of ms (and possibly wrong casing of the other vendor prefixes as well)?

@zpao
Copy link
Member

zpao commented Jun 23, 2014

Seems reasonable, but let's do that in a second PR

@gaearon
Copy link
Collaborator Author

gaearon commented Jun 24, 2014

@zpao I rebased it to use the synced camelize.

@zpao zpao self-assigned this Jun 24, 2014
@zpao zpao merged commit e625b8b into facebook:master Aug 11, 2014
zpao added a commit that referenced this pull request Aug 11, 2014
…e-names

Warn when using hyphenated style property names

Closes #1662

Conflicts:
	src/browser/ui/dom/CSSPropertyOperations.js
@zpao
Copy link
Member

zpao commented Aug 11, 2014

Sorry this took so long to get in!

@gaearon gaearon deleted the warn-when-using-hyphenated-style-names branch August 11, 2014 18:31
@gaearon
Copy link
Collaborator Author

gaearon commented Aug 11, 2014

Thank you!

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.

Warn when using hyphenated style values

3 participants