-
Notifications
You must be signed in to change notification settings - Fork 38
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
jQuery-Lint is attempting to (re)validate the jQuery object? #23
Comments
Hi, the first point is a good hint, but i guess the initial approach was to do a full or nothing check. It might be tricky to check if a call comes from inside jquery. But as jquery internally should also mind it's api .. it's just cycles we're wasting - not food :). The signature checks are against the published api - which is of course not complete. I've just updated the parser. Note that the current jq-lint version, shipped with eg. firequery, still has some issues with jquery > 1.4 (including 1.4.4). |
It seems a complete waste of cycles for Lint to be scanning and judging jQuery itself. In the first place, it will be endlessly exhausting for you to try to keep up to date with the modifications in each new jQuery release; in the second case, it is simply rude to judge your parents [ ;) ]
The following is a few lines from the top of a very very long list of similar reports which are fundamentally wrong. jQuery does allow $.extend( target, [object1], [objectN] ) ~ the only required parameter being the first one.
This is a direct lift from api.jquery.com:
Here's is the jQuery-Lint output.
I have my log buffer set to 2k lines, and it fills completely with loops on this error. *(It would be nice to see a limit-to-number-of-same-errors-logged option added to the LINT .api namespace.)
The text was updated successfully, but these errors were encountered: