Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Incorrect definition of jQueryObject.Not(Elements[]) #4

Open
ayo10 opened this issue Mar 7, 2014 · 0 comments
Open

Incorrect definition of jQueryObject.Not(Elements[]) #4

ayo10 opened this issue Mar 7, 2014 · 0 comments

Comments

@ayo10
Copy link

ayo10 commented Mar 7, 2014

If this is a known issue, please close, but, jQueryObject.Not(Elements[]) is defined in Saltarelle.jQuery as

[ExpandParams] public jQueryObject Not(params Element[] elements)

which is correct if only one argument is passed but incorrect when more than one argument is passed. Because the "not" function only expects and processes one argument (as of jquery 1.10.2 version of the js).
The method should be defined without the ExpandParamsAttribute and the 'params' qualifier.

ProdigySim added a commit to ProdigySim/SaltarelleJQuery that referenced this issue Mar 7, 2014
https://api.jquery.com/not/
From the API docs and testing, .not(elements) only takes a single parameter. [ExpandParams] is incorrect here, so it has been removed.
erik-kallen added a commit that referenced this issue Apr 24, 2014
Fixing incorrect jQueryObject.Not() signature (#4)
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