Skip to content

Commit c44a59b

Browse files
committed
jQuery.widget: minor cleanup
1 parent eadec64 commit c44a59b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

entries/jQuery.widget.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<p>jQuery UI contains many widgets that maintain state and therefore have a slightly different usage pattern than typical jQuery plugins. All of jQuery UI's widgets use the same patterns, which is defined by the widget factory. So if you learn how to use one widget, then you'll know how to use all of them.</p>
2121

22-
<p><em>Note: This documentation shows examples using the <a href="/progressbar">progressbar widget</a> but the syntax is the same for every widget.</em></p>
22+
<p><em>Note: This documentation shows examples using the <a href="/progressbar/">progressbar widget</a> but the syntax is the same for every widget.</em></p>
2323

2424
<h3>Initialization</h3>
2525

@@ -113,11 +113,11 @@
113113
$( "#elem" ).data( "ui-progressbar" );
114114
</code></pre>
115115

116-
<p>Whether an element has a given widget bound to it can be determined using the <a href="/data-selector"><code>:data</code></a> selector.</p>
116+
<p>Whether an element has a given widget bound to it can be determined using the <a href="/data-selector/"><code>:data</code></a> selector.</p>
117117

118118
<pre><code>
119119
$( "#elem" ).is( ":data( 'ui-progressbar' )" ); // true
120-
$( "#elem" ).is( ":data( 'ui-draggable' )" ); //false
120+
$( "#elem" ).is( ":data( 'ui-draggable' )" ); // false
121121
</code></pre>
122122

123123
<p>You can also use <code>:data</code> to get a list of all elements that are instances of a given widget.</p>
@@ -150,7 +150,7 @@
150150
<strong>version</strong>: The string version of the widget. For jQuery UI widgets this will be set to the version of jQuery UI the widget is using. Widget developers have to set this property in their prototype explicitly.
151151
</li>
152152
<li>
153-
<strong>widgetEventPrefix</strong>: The prefix prepended to the name of events fired from this widget. For example the <code>widgetEventPrefix</code> of the <a href="/draggable">draggable widget</a> is <code>"drag"</code>, therefore when a draggable is created, the name of the event fired is <code>"dragcreate"</code>. By default the <code>widgetEventPrefix</code> of a widget is its name. <em>Note: This property is deprecated and will be removed in a later release. Event names will be changed to widgetName:eventName (e.g. <code>"draggable:create"</code>.</em>
153+
<strong>widgetEventPrefix</strong>: The prefix prepended to the name of events fired from this widget. For example the <code>widgetEventPrefix</code> of the <a href="/draggable/">draggable widget</a> is <code>"drag"</code>, therefore when a draggable is created, the name of the event fired is <code>"dragcreate"</code>. By default the <code>widgetEventPrefix</code> of a widget is its name. <em>Note: This property is deprecated and will be removed in a later release. Event names will be changed to widgetName:eventName (e.g. <code>"draggable:create"</code>.</em>
154154
</li>
155155
<li>
156156
<strong>widgetFullName</strong>: The full name of the widget including the namespace. For <code>$.widget( "myNamespace.myWidget", {} )</code>, <code>widgetFullName</code> will be <code>"myNamespace-myWidget"</code>.

0 commit comments

Comments
 (0)