Skip to content

Dashes in .data() names behavior change #87

Closed
@dmethvin

Description

@dmethvin

We're using camelCase for data names where possible, and only use the dash-name if it exists in the object already. Ideally, API callers should use camelCase for accessing data names rather than dashes. If the caller gets the raw data object they'll see camelCase if they put in dash-name via the API. (Clearly this will need a longer explanation somewhere.)

jquery/jquery#1751
jquery/jquery#2257

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions