Permalink
Browse files

Tweaked comments regarding module inclusions. Also, 3.3.0->3.5.0

  • Loading branch information...
1 parent 41811b6 commit 699e115ce5ce20f6141187b58ab21c6602ec5638 @derek committed Sep 8, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 index.html
View
@@ -63,7 +63,7 @@ <h2 id="start">Getting Started</h2>
</td>
<td class="code">
<pre class="code yui">
-&lt;script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js"&gt;&lt;/script&gt;
+&lt;script src="http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js"&gt;&lt;/script&gt;
@@ -85,6 +85,8 @@ <h2 id="start">Getting Started</h2>
// example code here
});
</pre>
+
+<p>If any additional modules are needed, they'll be specified in the "notes" section to the example.</p>
</td>
</tr>
</tbody>
@@ -725,7 +727,7 @@ <h2 id="events">Events</h2>
</pre>
</td>
<td class="notes">
- <p>Simulates a <em>click</em> event. In YUI, you'll need the <i>node-event-simulate</i> module.</p>
+ <p>Simulates a <em>click</em> event. In YUI, you'll need the <code>node-event-simulate</code> module.</p>
</td>
</tr>
</tbody>
@@ -1062,7 +1064,7 @@ <h2 id="effects">Effects</h2>
</td>
<td class="notes">
<p>The basic syntax and capabilities of both animation libraries are very similar. jQuery has convenience methods for effects like <code>.fadeIn()</code>, <code>.slideUp()</code>, etc. jQuery core has two easing functions: 'linear' and 'swing', but jQuery UI comes with <a href="http://jqueryui.com/demos/effect/">many more effects</a> as plugins.</p>
- <p>YUI has several <a href="http://yuilibrary.com/yui/docs/api/classes/Easing.html">easing algorithms</a> built-in, and offers additional tools such as <a href="http://yuilibrary.com/yui/docs/anim/curve.html">animations over Bezier curves</a>. Make sure to load the <code>'anim'</code> module in your call to <code>YUI().use()</code>.</p>
+ <p>YUI has several <a href="http://yuilibrary.com/yui/docs/api/classes/Easing.html">easing algorithms</a> built-in, and offers additional tools such as <a href="http://yuilibrary.com/yui/docs/anim/curve.html">animations over Bezier curves</a>. Requires the <code>anim</code> module.</p>
</td>
</tr>
@@ -1231,7 +1233,7 @@ <h2 id="ajax">Ajax</h2>
</pre>
</td>
<td class="notes">
- <p><a href="http://yuilibrary.com/yui/docs/io/">YUI.io</a> has extra options for failure mode callbacks, headers, cross-frame i/o, etc. <a href="http://api.jquery.com/jQuery.ajax/">jQuery.ajax()</a> has some interesting options for async, context, and filtering. Make sure to load the YUI <code>'io'</code> module.</p>
+ <p><a href="http://yuilibrary.com/yui/docs/io/">YUI.io</a> has extra options for failure mode callbacks, headers, cross-frame i/o, etc. <a href="http://api.jquery.com/jQuery.ajax/">jQuery.ajax()</a> has some interesting options for async, context, and filtering. Make sure to load the YUI <code>io</code> module.</p>
</td>
</tr>
@@ -1296,15 +1298,14 @@ <h2 id="ajax">Ajax</h2>
</td>
<td class="code">
<pre class="code yui">
-<i>// (module: jsonp)</i>
Y.jsonp(
"/some/jsonpURL.json?callback={callback}",
<i>successFn</i>
);
</pre>
</td>
<td class="notes">
- <p>JSONP requests. Same-origin policy is not enforced.</p>
+ <p>JSONP requests. Same-origin policy is not enforced. Requires the <code>jsonp</code> module.</p>
</td>
</tr>
</tbody>

0 comments on commit 699e115

Please sign in to comment.