Skip to content

.data() getter creates data #2919

@prontiol

Description

@prontiol

Not sure, if this is intended, but calling .data() without arguments creates data object for the given node.

> $.hasData($div)
false
> $($div).data()
Object {}
> $.hasData($div)
true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions