This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
Incorrect function return type for jQuery setter functions #3684
Open
Description
jQuery has overloaded functions; both setters and getters have the same name, but setters have some extra parameters and most of them return jQuery object for chaining.
- In a js file type
$("div").css("display", "none")
. - Type a dot to chain the call with other jQuery api.
Result: You get hints for string methods instead of jQuery methods.
Activity