-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect function return type for jQuery setter functions #12275
Comments
Comment by njx Reviewed. Marking medium priority to |
Comment by eztierney I looked through the jQuery docs, and I found 3 methods like this: I didn't see any other methods which looked like they were overloaded like this, but I may have missed some. |
Comment by RaymondLim three more -- height, width and html. |
Comment by njx A few more: |
Comment by pfarland Erik logged a Tern bug, see the comments in ternjs/tern#123. |
Comment by pfarland Removing Sprint 25 milestone as we're dependent on a fix in Tern |
Comment by redmunds Was assigned to tern team, so marking "Needs Review". |
Issue by RaymondLim
Wednesday May 01, 2013 at 00:01 GMT
Originally opened as adobe/brackets#3684
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.
$("div").css("display", "none")
.Result: You get hints for string methods instead of jQuery methods.
The text was updated successfully, but these errors were encountered: