Skip to content

Commit 3df4ca0

Browse files
tjvantollscottgonzalez
authored andcommitted
jQuery.widget: Remove extraneous spaces in :data selectors
Spaces within :data selectors are significant, and the ones used in these docs were causing the examples to not find the correct elements. Closes gh-285 (cherry picked from commit 1df2c5f)
1 parent 2110052 commit 3df4ca0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entries/jQuery.widget.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@
118118
<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>
119119

120120
<pre><code>
121-
$( "#elem" ).is( ":data( 'ui-progressbar' )" ); // true
122-
$( "#elem" ).is( ":data( 'ui-draggable' )" ); // false
121+
$( "#elem" ).is( ":data('ui-progressbar')" ); // true
122+
$( "#elem" ).is( ":data('ui-draggable')" ); // false
123123
</code></pre>
124124

125125
<p>You can also use <code>:data</code> to get a list of all elements that are instances of a given widget.</p>
126126

127127
<pre><code>
128-
$( ":data( 'ui-progressbar' )" );
128+
$( ":data('ui-progressbar')" );
129129
</code></pre>
130130

131131
<h3>Properties</h3>

0 commit comments

Comments
 (0)