Skip to content

removeProp and prop: clarify recommendations regarding native properties#1189

Merged
timmywil merged 2 commits into
mainfrom
removeprop
May 14, 2021
Merged

removeProp and prop: clarify recommendations regarding native properties#1189
timmywil merged 2 commits into
mainfrom
removeprop

Conversation

@timmywil
Copy link
Copy Markdown
Member

Copy link
Copy Markdown

@akshaygao akshaygao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar such documentation is available in .prop(). The highlighted text lead me to the confusion.

Important: the .removeProp() method should not be used to set these properties to false. Once a native property is removed, it cannot be added again. See .removeProp() for more information.

@timmywil timmywil changed the title removeProp: clarify recommendations regarding native properties removeProp and prop: clarify recommendations regarding native properties May 14, 2021
@timmywil timmywil requested a review from mgol May 14, 2021 15:25
@timmywil timmywil merged commit 17cdeda into main May 14, 2021
@timmywil timmywil deleted the removeprop branch May 14, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants