Skip to content

Commit 47dd9de

Browse files
committed
Add summarizing description for multi-entry methods.
Fixes #129
1 parent f81c0a4 commit 47dd9de

19 files changed

Lines changed: 33 additions & 17 deletions

entries/attr.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
22
<entries>
3+
<desc>Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.</desc>
34
<entry type="method" name="attr" return="String">
45
<title>.attr()</title>
56
<signature>
@@ -157,4 +158,4 @@ $("img").attr("src", function() {
157158
<category slug="version/1.1"/>
158159
<category slug="version/1.6"/>
159160
</entry>
160-
</entries>
161+
</entries>

entries/closest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ $('li.item-a').closest('#one', listItemII)
147147
<desc>A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead.</desc>
148148
</argument>
149149
</signature>
150-
<desc>Gets an array of all the elements and selectors matched against the current element up through the DOM tree.</desc>
150+
<desc>Get an array of all the elements and selectors matched against the current element up through the DOM tree.</desc>
151151
<longdesc>
152152
<p><strong>This signature (only!) is deprecated as of jQuery 1.7 and <em>removed</em> in jQuery 1.8</strong>. It was primarily meant to be used internally or by plugin authors.</p>
153153
</longdesc>

entries/css.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
22
<entries>
3+
<desc>Get the value of a style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.</desc>
34
<entry type="method" name="css" return="String">
45
<title>.css()</title>
56
<signature>
@@ -65,7 +66,7 @@ div { width:60px; height:60px; margin:5px; float:left; }
6566
<desc>A map of property-value pairs to set.</desc>
6667
</argument>
6768
</signature>
68-
<desc>Set one or more CSS properties for the set of matched elements.</desc>
69+
<desc>Set one or more CSS properties for the set of matched elements.</desc>
6970
<longdesc>
7071
<p>As with the <code>.prop()</code> method, the <code>.css()</code> method makes setting properties of elements quick and easy. This method can take either a property name and value as separate parameters, or a single map of key-value pairs (JavaScript object notation).</p>
7172
<p>Also, jQuery can equally interpret the CSS and DOM formatting of multiple-word properties. For example, jQuery understands and returns the correct value for both <code>.css({'background-color': '#ffe', 'border-left': '5px solid #ccc'})</code> and <code>.css({backgroundColor: '#ffe', borderLeft: '5px solid #ccc'})</code>. Notice that with the DOM notation, quotation marks around the property names are optional, but with CSS notation they're required due to the hyphen in the name.</p>

entries/data.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
22
<entries>
3+
<desc>Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements.</desc>
34
<entry type="method" name="data" return="jQuery">
45
<title>.data()</title>
56
<signature>
@@ -67,7 +68,7 @@ $("span:last").text($("div").data("test").last);
6768
<signature>
6869
<added>1.4</added>
6970
</signature>
70-
<desc>Returns value at named data store for the first element in the jQuery collection, as set by data(name, value).</desc>
71+
<desc>Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.</desc>
7172
<longdesc>
7273
<p>The <code>.data()</code> method allows us to attach data of any type to DOM elements in a way that is safe from circular references and therefore from memory leaks. We can retrieve several distinct values for a single element one at a time, or as a set:</p>
7374
<pre><code>
@@ -150,4 +151,4 @@ $("button").click(function(e) {
150151
<category slug="version/1.4"/>
151152
<category slug="version/1.4.3"/>
152153
</entry>
153-
</entries>
154+
</entries>

entries/height.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
22
<entries>
3+
<desc>Get the current computed height for the first element in the set of matched elements or set the height of every matched element.</desc>
34
<entry type="method" name="height" return="Integer">
45
<title>.height()</title>
56
<signature>
@@ -98,4 +99,4 @@ $(document).height(); // returns height of HTML document</code></pre>
9899
<category slug="version/1.0"/>
99100
<category slug="version/1.4.1"/>
100101
</entry>
101-
</entries>
102+
</entries>

entries/hover.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
22
<entries>
3+
<desc>Bind one or two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.</desc>
34
<entry type="method" name="hover" return="jQuery">
45
<title>.hover()</title>
56
<desc>Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.</desc>
@@ -112,4 +113,4 @@ $("li")
112113
<category slug="events/mouse-events"/>
113114
<category slug="version/1.0"/>
114115
</entry>
115-
</entries>
116+
</entries>

entries/html.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
22
<entries>
3+
<desc>Get the HTML contents of the first element in the set of matched elements or set the HTML contents of every matched element.</desc>
34
<entry type="method" name="html" return="String">
45
<title>.html()</title>
56
<signature>

entries/jQuery.browser.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@ if ( $.browser.msie ) {
124124
<category slug="version/1.0"/>
125125
<category slug="version/1.1.3"/>
126126
</entry>
127-
</entries>
127+
</entries>

entries/jQuery.data.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
22
<entries>
3+
<desc>Store arbitrary data associated with the specified element and/or return the value that was set.</desc>
34
<entry type="method" name="jQuery.data" return="Object">
45
<title>jQuery.data()</title>
56
<signature>
@@ -122,4 +123,4 @@ span { color:red; }
122123
<category slug="version/1.4"/>
123124
<category slug="version/1.4.3"/>
124125
</entry>
125-
</entries>
126+
</entries>

entries/jQuery.queue.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
22
<entries>
3+
<desc>Show or manipulate the queue of functions to be executed on the matched element.</desc>
34
<entry type="method" name="jQuery.queue" return="Array">
45
<title>jQuery.queue()</title>
56
<signature>
@@ -144,4 +145,4 @@ div.newcolor { background:blue; }
144145
<category slug="utilities"/>
145146
<category slug="version/1.3"/>
146147
</entry>
147-
</entries>
148+
</entries>

0 commit comments

Comments
 (0)