Skip to content

Commit cabacd2

Browse files
committed
Update closest() entry for 1.8
1 parent 6f9d749 commit cabacd2

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

entries/closest.xml

+4-13
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,11 @@ $('li.item-a').closest('#one', listItemII)
136136
<category slug="version/1.4"/>
137137
<category slug="version/1.6"/>
138138
</entry>
139-
<entry type="method" name="closest" return="Array">
139+
<entry type="method" name="closest" return="Array" removed="1.8">
140140
<signature>
141141
<added>1.4</added>
142142
<deprecated>1.7</deprecated>
143+
<removed>1.8</removed>
143144
<argument name="selectors" type="Array">
144145
<desc>An array or string containing a selector expression to match elements against (can also be a jQuery object).</desc>
145146
</argument>
@@ -149,21 +150,11 @@ $('li.item-a').closest('#one', listItemII)
149150
</signature>
150151
<desc>Gets an array of all the elements and selectors matched against the current element up through the DOM tree.</desc>
151152
<longdesc>
152-
<p><strong>This signature (only!) is deprecated as of jQuery 1.7.</strong> This method is primarily meant to be used internally or by plugin authors.</p>
153+
<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>
153154
</longdesc>
154-
<example>
155-
<desc>Show how event delegation can be done with closest.</desc>
156-
<code><![CDATA[
157-
var close = $("li:first").closest(["ul", "body"]);
158-
$.each(close, function(i){
159-
$("li").eq(i).html( this.selector + ": " + this.elem.nodeName );
160-
});]]></code>
161-
<css><![CDATA[]]></css>
162-
<html><![CDATA[<ul><li></li><li></li></ul>]]></html>
163-
</example>
164155
<category slug="traversing/tree-traversal"/>
165156
<category slug="version/1.3"/>
166157
<category slug="version/1.4"/>
167158
<category slug="version/1.6"/>
168159
</entry>
169-
</entries>
160+
</entries>

0 commit comments

Comments
 (0)