polymer
polymer copied to clipboard
casemap bug
Description
For strings that have already been casemapped (and cashed under caseMap object in https://github.com/Polymer/polymer/blob/master/lib/utils/case-map.js), calling either dashToCamelCase
or camelToDashCase
will convert to the other notation, whatever the initial notation is.
Steps to Reproduce
Polymer.CaseMap.dashToCamelCase('i-should-stay-dash') => "iShouldStayDash" (o.k.)
Polymer.CaseMap.camelToDashCase('i-should-stay-dash') => "iShouldStayDash" (not o.k. - it should return 'i-should-stay-dash')
Expected Results
calling camelToDashCase on a 'dashed-string' should keep the sting in a dashed mode.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I hope this issue will be resolved.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.