Permalink
Browse files

jQuery.widget: Minor updates

  • Loading branch information...
1 parent b55a711 commit 189100423e3da5bb549018de268eedf56b6038d3 @tjvantoll committed Mar 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 entries/jQuery.widget.xml
@@ -99,11 +99,11 @@
$( "#not-a-progressbar" ).progressbar( "instance" ); // undefined
</code></pre>
- <p>The instance is stored using <a href="http://api.jquery.com/jQuery.data/"><code>jQuery.data()</code></a> with the widget's full name as the key. Therefore, the <a href="/data-selector"><code>:data</code></a> selector can also determine whether an element has a given widget bound to it.</p>
+ <p>The instance is stored using <a href="http://api.jquery.com/jQuery.data/"><code>jQuery.data()</code></a> with the widget's full name as the key. Therefore, the <a href="/data-selector/"><code>:data</code></a> selector can also determine whether an element has a given widget bound to it.</p>
<pre><code>
$( "#elem" ).is( ":data( 'ui-progressbar' )" ); // true
- $( "#elem" ).is( ":data( 'ui-draggable' )" ); //false
+ $( "#elem" ).is( ":data( 'ui-draggable' )" ); // false
</code></pre>
<p>Unlike <code>instance()</code>, <code>:data</code> can be used even if the widget being tested for has not loaded.</p>

0 comments on commit 1891004

Please sign in to comment.