Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added version info for .uniqueId() and .removeUniqueId().

  • Loading branch information...
commit b3e45991f4d99e5aa5c2c5d0afe2765b13ea5a62 1 parent 6edd5a4
@scottgonzalez scottgonzalez authored
Showing with 6 additions and 2 deletions.
  1. +3 −1 entries/removeUniqueId.xml
  2. +3 −1 entries/uniqueId.xml
View
4 entries/removeUniqueId.xml
@@ -2,7 +2,9 @@
<entry type="method" name="removeUniqueId" return="jQuery">
<title>.removeUniqueId()</title>
<desc>Remove ids that were set by <code>.uniqueId()</code> for the set of matched elements.</desc>
- <signature/>
+ <signature>
+ <added>1.9</added>
+ </signature>
<longdesc>
<p>The <code>.removeUniqueId()</code> will remove ids that were set by <a href="/uniqueId"><code>.uniqueId()</code></a>. Calling <code>.removeUniqueId()</code> on an element that did not have its id set by <code>.uniqueId()</code> will have no affect, even if the element has an id.</p>
</longdesc>
View
4 entries/uniqueId.xml
@@ -2,7 +2,9 @@
<entry type="method" name="uniqueId" return="jQuery">
<title>.uniqueId()</title>
<desc>Generate and apply a unique id for the set of matched elements.</desc>
- <signature/>
+ <signature>
+ <added>1.9</added>
+ </signature>
<longdesc>
<p>Many widgets need to generate unique ids for elements. <code>.uniqueId()</code> will check if the element has an id, and if not, it will generate one and set it on the element. It is safe to call <code>.uniqueId()</code> on an element without checking if it already has an id. If/when the widget needs to clean up after itself, the <a href="/removeUniqueId"><code>.removeUniqueId()</code></a> method will remove the id from the element if it was added by <code>.uniqueId()</code> and leave the id alone if it was not. <code>.removeUniqueId()</code> is able to be smart about this because the generated ids have a prefix of <code>"ui-id-"</code>.</p>
</longdesc>
Please sign in to comment.
Something went wrong with that request. Please try again.