Skip to content

Commit ed81bca

Browse files
usmonsterscottgonzalez
authored andcommitted
Widget: Document & window properties are jQuery-wrapped
Closes gh-205
1 parent 8006d68 commit ed81bca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/jQuery.widget.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
<strong>defaultElement</strong>: An element to use when a widget instance is constructed without providing an element. For example, since the progressbar's <code>defaultElement</code> is <code>"&lt;div&gt;</code>", <code>$.ui.progressbar({ value: 50 })</code> instantiates a progressbar widget instance on a newly created <code>&lt;div&gt;</code>.
138138
</li>
139139
<li>
140-
<strong>document</strong>: The <code>document</code> that the widget's element is within. Useful if you need to interact with widgets within iframes.
140+
<strong>document</strong>: A jQuery object containing the <code>document</code> that the widget's element is within. Useful if you need to interact with widgets within iframes.
141141
</li>
142142
<li>
143143
<strong>element</strong>: A jQuery object containing the element used to instantiate the widget. If you select multiple elements and call <code>.myWidget()</code>, a separate widget instance will be created for each element. Therefore, this property will always contain one element.
@@ -164,7 +164,7 @@
164164
<strong>widgetName</strong>: The name of the widget. For <code>$.widget( "myNamespace.myWidget", {} )</code>, <code>widgetName</code> will be <code>"myWidget"</code>.
165165
</li>
166166
<li>
167-
<strong>window</strong>: The <code>window</code> that the widget's element is within. Useful if you need to interact with widgets within iframes.
167+
<strong>window</strong>: A jQuery object containing the <code>window</code> that the widget's element is within. Useful if you need to interact with widgets within iframes.
168168
</li>
169169
</ul>
170170
</longdesc>

0 commit comments

Comments
 (0)