Skip to content

Commit 1cb3361

Browse files
committed
Error: Added deprecation note
Closes gh-824
1 parent 320265a commit 1cb3361

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

entries/error.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
</signature>
2222
<longdesc>
2323
<p>This method is a shortcut for <code>.on( "error", handler )</code>.</p>
24+
<p><b>As of jQuery 1.8</b>, the <code>.error()</code> method is deprecated. Use <code>.on( "error", handler )</code> to attach event handlers to the <code>error</code> event instead.</p>
2425
<p>The <code>error</code> event is sent to elements, such as images, that are referenced by a document and loaded by the browser. It is called if the element was not loaded correctly.</p>
2526
<p>For example, consider a page with a simple image element:</p>
2627
<pre><code>

0 commit comments

Comments
 (0)