Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.
This repository was archived by the owner on May 4, 2021. It is now read-only.

As funções que utilizam a jQuery como intermediário não retornam objetos wrapper #31

@paulobrumatti

Description

@paulobrumatti

Funções como a closest não retornam um objeto helper quando a jQuery está disponível, e sim um objeto jQuery. Isto pode causar erros nos casos em que o ambiente mude sem avisos.

Ambiente sem jQuery:
helper.wrap('a').closest('div').nodes // NodeList []

Ambiente com jQuery:
helper.wrap('a').closest('div').nodes // undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions