Skip to content

Commit 663baa4

Browse files
committed
Update replaceWith() desc to note that original jQuery object is returned
1 parent 6b08fa5 commit 663baa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/replaceWith.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<desc>A function that returns content with which to replace the set of matched elements.</desc>
1414
</argument>
1515
</signature>
16-
<desc>Replace each element in the set of matched elements with the provided new content.</desc>
16+
<desc>Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.</desc>
1717
<longdesc>
1818
<p>The <code>.replaceWith()</code> method removes content from the DOM and inserts new content in its place with a single call. Consider this DOM structure:</p>
1919
<pre><code>&lt;div class="container"&gt;
@@ -131,4 +131,4 @@ $('button').bind("click", function() {
131131
<category slug="manipulation/dom-replacement"/>
132132
<category slug="version/1.2"/>
133133
<category slug="version/1.4"/>
134-
</entry>
134+
</entry>

0 commit comments

Comments
 (0)