Skip to content

Naive shim around $.data breaks much code #198

Closed
@ThatRendle

Description

@ThatRendle

The shim around .data doesn't support the same set of overloads as the core function. It assumes the second parameter is the name property, whereas it can be an object to set a bunch of properties simultaneously.

See: https://github.com/jquery/jquery-migrate/blob/master/src/data.js#L7
vs: https://github.com/jquery/jquery/blob/master/src/data.js

Among other things, this breaks AngularJS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions