Skip to content

Commit 541d197

Browse files
committed
Focus: Add missing deprecation notice
Fixes #277
1 parent 3e17f0b commit 541d197

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entries/focus.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<entry type="method" name="focus" return="jQuery">
33
<title>.focus()</title>
44
<desc>Asynchronously set focus to an element.</desc>
5-
<signature>
5+
<signature deprecated="1.11">
66
<argument name="delay" type="Integer">
77
<desc>The number of milliseconds to wait before setting focus.</desc>
88
</argument>
@@ -12,6 +12,7 @@
1212
</signature>
1313
<longdesc>
1414
<xi:include href="../includes/core-extension-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
15+
<p class="warning">This method is deprecated. Use <code>.focus()</code> without arguments inside a timeout or <a href="/jQuery.widget/#method-_delay">$.Widget's <code>._delay()</code></a> method.</p>
1516
</longdesc>
1617
<category slug="methods"/>
1718
<category slug="overrides"/>

0 commit comments

Comments
 (0)