-
Notifications
You must be signed in to change notification settings - Fork 260
Added structured types for higer order function parameters #419
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
Changes from 1 commit
b82bc18
d8093a5
0d7d9b3
7455ae5
d68f7ae
41ce261
6aa5119
9d4aa93
49a296c
40db666
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Some function parameters of function type (e.g. handlers, callbacks) was described with the signature in the name-attribute, eg. <argument name="function(index, value)" type="Function">. This have been modified to used nested <argument>-elements to describe the signatures more consistently.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,8 +20,14 @@ | |
| </signature> | ||
| <signature> | ||
| <added>1.4</added> | ||
| <argument name="function(index)" type="Function"> | ||
| <argument name="function" type="Function"> | ||
| <desc>A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, <code>this</code> refers to the current element in the set.</desc> | ||
| <argument name="index" type="Integer" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Like |
||
| <return> | ||
| <type name="htmlString"/> | ||
| <type name="Element"/> | ||
| <type name="jQuery"/> | ||
| </return> | ||
| </argument> | ||
| </signature> | ||
| <desc>Insert content, specified by the parameter, after each element in the set of matched elements.</desc> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,8 +3,12 @@ | |
| <title>.ajaxError()</title> | ||
| <signature> | ||
| <added>1.0</added> | ||
| <argument name="handler(event, jqXHR, ajaxSettings, thrownError)" type="Function"> | ||
| <argument name="handler" type="Function"> | ||
| <desc>The function to be invoked.</desc> | ||
| <argument name="event" type="Event" /> | ||
| <argument name="jqXHR" type="jqXHR" /> | ||
| <argument name="ajaxSettings" type="ajaxSettings" /> | ||
| <argument name="thrownError" type="Error" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no |
||
| </argument> | ||
| </signature> | ||
| <desc>Register a handler to be called when Ajax requests complete with an error. This is an <a href="/Ajax_Events/">Ajax Event</a>.</desc> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,12 @@ | |
| <signature> | ||
| <added>1.4</added> | ||
| <argument name="function" type="Function"> | ||
| <argument name="index" type="Integer" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This receives the html as a second argument. |
||
| <return> | ||
| <type name="htmlString"/> | ||
| <type name="Element"/> | ||
| <type name="jQuery"/> | ||
| </return> | ||
| <desc>A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, <code>this</code> refers to the current element in the set. | ||
| </desc> | ||
| </argument> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,8 +9,10 @@ | |
| </signature> | ||
| <signature> | ||
| <added>1.0</added> | ||
| <argument name="function(index)" type="Function"> | ||
| <argument name="function" type="Function"> | ||
| <desc>A function used as a test for each element in the set. <code>this</code> is the current DOM element.</desc> | ||
| <argument name="index" type="Integer" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The function receives the element as a second argument. |
||
| <return type="Boolean" /> | ||
| </argument> | ||
| </signature> | ||
| <signature> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
currentClassName. See http://tantek.com/2012/353/b1/why-html-classes-css-class-selectors.