Skip to content
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

Open
paulobrumatti opened this issue May 23, 2019 · 0 comments

Comments

@paulobrumatti
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant