Skip to content

Commit 38077ba

Browse files
committed
Revert "Revert "jQuery.widget: Document that instance can be called on any element to determine whether it is a widget. Fixes #77.""
This reverts commit 404a476.
1 parent 0a283b7 commit 38077ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

includes/widget-method-instance.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0"?>
2-
<method name="instance">
2+
<method name="instance" return="Object">
33
<desc>
4-
Retrieves the <placeholder name="name"/>'s instance object.
4+
<p>Retrieves the <placeholder name="name"/>'s instance object. If the element does not have an associated instance, <code>undefined</code> is returned.</p>
5+
6+
<p>Unlike other widget methods, <code>instance()</code> is safe to call on any element after the <placeholder name="name"/> plugin has loaded.</p>
57
</desc>
68
</method>

0 commit comments

Comments
 (0)