Skip to content

Commit a729778

Browse files
scottgonzalezjzaefferer
authored andcommitted
jQuery.widget: Document that instance can be called on any element
Fixes gh-77
1 parent 4bb2f69 commit a729778

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

includes/widget-method-instance.xml

Lines changed: 4 additions & 2 deletions
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)