<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Scope Correction with YUI</title>
	<atom:link href="http://grasshopperpebbles.com/ajax/scope-correction-with-yui/feed/" rel="self" type="application/rss+xml" />
	<link>http://grasshopperpebbles.com/ajax/scope-correction-with-yui/</link>
	<description>Ajax and Ajax Frameworks</description>
	<lastBuildDate>Mon, 02 Jan 2012 13:41:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Pat Cavit</title>
		<link>http://grasshopperpebbles.com/ajax/scope-correction-with-yui/#comment-42</link>
		<dc:creator>Pat Cavit</dc:creator>
		<pubDate>Sun, 29 Mar 2009 21:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=85#comment-42</guid>
		<description>You can pass a value, using normal YUI:

.on(”click”, this.getAlbums, value, this)

You can pass values w/ .apply &amp; .call as well.

.apply:
  func_name.apply(scope, singleArg)
  func_name.apply(scope, [multiple, args])

.call
  func_name.call(scope, singleArg)
  func_name.call(scope, multiple, args)

Using scope correction in JS is pretty simple &amp; super-useful.</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>You can pass a value, using normal YUI:</p>
<p>.on(”click”, this.getAlbums, value, this)</p>
<p>You can pass values w/ .apply &amp; .call as well.</p>
<p>.apply:<br />
  func_name.apply(scope, singleArg)<br />
  func_name.apply(scope, [multiple, args])</p>
<p>.call<br />
  func_name.call(scope, singleArg)<br />
  func_name.call(scope, multiple, args)</p>
<p>Using scope correction in JS is pretty simple &amp; super-useful.<br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end -->
</p>
</div>
<p> <!-- KonaBody --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://grasshopperpebbles.com/ajax/scope-correction-with-yui/#comment-41</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 29 Mar 2009 21:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=85#comment-41</guid>
		<description>Thanks. I&#039;ve actually learned a lot about building widgets from visiting your site.</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>Thanks. I&#8217;ve actually learned a lot about building widgets from visiting your site.<br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end -->
</p>
</div>
<p> <!-- KonaBody --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caridy Patino</title>
		<link>http://grasshopperpebbles.com/ajax/scope-correction-with-yui/#comment-40</link>
		<dc:creator>Caridy Patino</dc:creator>
		<pubDate>Sun, 29 Mar 2009 03:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=85#comment-40</guid>
		<description>@admin:

Passing more argument along with the scope is a build-in feature in YUI3.x. You can emulate it on YUI2 using &quot;apply&quot;, but you have to do it manually, like your method &quot;bindCallBack&quot;.

Here is the YUI3 documentation:
http://developer.yahoo.com/yui/3/event/

Check the section: &quot;Using on: Controlling Context and Arguments&quot;.</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>@admin:</p>
<p>Passing more argument along with the scope is a build-in feature in YUI3.x. You can emulate it on YUI2 using &#8220;apply&#8221;, but you have to do it manually, like your method &#8220;bindCallBack&#8221;.</p>
<p>Here is the YUI3 documentation:<br />
<a href="http://developer.yahoo.com/yui/3/event/" rel="nofollow">http://developer.yahoo.com/yui/3/event/</a></p>
<p>Check the section: &#8220;Using on: Controlling Context and Arguments&#8221;.<br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end -->
</p>
</div>
<p> <!-- KonaBody --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://grasshopperpebbles.com/ajax/scope-correction-with-yui/#comment-39</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 29 Mar 2009 01:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=85#comment-39</guid>
		<description>Interesting. I wish I could also pass a value.</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>Interesting. I wish I could also pass a value.<br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end -->
</p>
</div>
<p> <!-- KonaBody --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat Cavit</title>
		<link>http://grasshopperpebbles.com/ajax/scope-correction-with-yui/#comment-35</link>
		<dc:creator>Pat Cavit</dc:creator>
		<pubDate>Thu, 26 Mar 2009 17:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://grasshopperpebbles.com/?p=85#comment-35</guid>
		<description>You can also write it as:

.on(&quot;click&quot;, this.getAlbums, null, this)

which I prefer. Also for regular JS scope-correction function.call and function.apply are very handy to know about.

https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Function/Apply

https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Function/Call

&lt;abbr&gt;&lt;em&gt;Pat Cavit’s last blog post..&lt;a href=&quot;http://patcavit.com/2008/11/30/yui-uploader-updated/&quot; rel=&quot;nofollow&quot;&gt;YUI Uploader Updated&lt;/a&gt;&lt;/abbr&gt;&lt;/em&gt;</description>
		<content:encoded><![CDATA[<div class="KonaBody">
<!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>You can also write it as:</p>
<p>.on(&#8220;click&#8221;, this.getAlbums, null, this)</p>
<p>which I prefer. Also for regular JS scope-correction function.call and function.apply are very handy to know about.</p>
<p><a href="https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Function/Apply" rel="nofollow">https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Function/Apply</a></p>
<p><a href="https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Function/Call" rel="nofollow">https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/Function/Call</a></p>
<p><abbr><em>Pat Cavit’s last blog post..<a href="http://patcavit.com/2008/11/30/yui-uploader-updated/" rel="nofollow">YUI Uploader Updated</a></em></abbr><br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end -->
</p>
</div>
<p> <!-- KonaBody --></p>
]]></content:encoded>
	</item>
</channel>
</rss>

