<?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: Javascript monitoring</title>
	<atom:link href="http://terrychay.com/blog/article/javascript-monitoring.shtml/feed" rel="self" type="application/rss+xml" />
	<link>http://terrychay.com/blog/article/javascript-monitoring.shtml</link>
	<description>You tell that other boy, not to touch the woodwork...</description>
	<pubDate>Fri, 09 Jan 2009 14:22:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.8-bleeding-edge</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: tychay</title>
		<link>http://terrychay.com/blog/article/javascript-monitoring.shtml/comment-page-1#comment-14445</link>
		<dc:creator>tychay</dc:creator>
		<pubDate>Wed, 20 Dec 2006 05:29:02 +0000</pubDate>
		<guid isPermaLink="false">http://terrychay.com/blog/article/javascript-monitoring.shtml#comment-14445</guid>
		<description>Frozen O &lt;a href="http://www.frozen-o.com/blog/2006/12/altogether-rather-neglected-javascript.html" rel="nofollow"&gt;adds call() and apply()&lt;/a&gt;.

The point of these methods is that when you want to callback to a method inside an object, the this variable often has unintended scope. It’s the the scope of when the callback is called (usually window) instead of the scope of the object itself. By using call() or apply() (just different syntactical ways of expressing the same thing), you can do a callback to an object.

Normally, I do this by manually constructing the closure, but &lt;a href="http://ajaxcookbook.org/javascript-callbacks/" rel="nofollow"&gt;this method of a generalized function&lt;/a&gt; is much more clever (and PHP-like syntax).

I’ll have to add that feature to my base function toolset.</description>
		<content:encoded><![CDATA[<p>Frozen O <a href="http://www.frozen-o.com/blog/2006/12/altogether-rather-neglected-javascript.html" rel="nofollow">adds call() and apply()</a>.</p>
<p>The point of these methods is that when you want to callback to a method inside an object, the this variable often has unintended scope. It’s the the scope of when the callback is called (usually window) instead of the scope of the object itself. By using call() or apply() (just different syntactical ways of expressing the same thing), you can do a callback to an object.</p>
<p>Normally, I do this by manually constructing the closure, but <a href="http://ajaxcookbook.org/javascript-callbacks/" rel="nofollow">this method of a generalized function</a> is much more clever (and PHP-like syntax).</p>
<p>I’ll have to add that feature to my base function toolset.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
