<?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: Window &#8216;tofront&#8217; and &#8216;toback&#8217; events</title>
	<atom:link href="http://www.jslog.com/window-tofront-and-toback-events/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jslog.com/window-tofront-and-toback-events</link>
	<description></description>
	<lastBuildDate>Fri, 15 Jul 2011 04:51:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: radu</title>
		<link>http://www.jslog.com/window-tofront-and-toback-events/comment-page-1#comment-443</link>
		<dc:creator>radu</dc:creator>
		<pubDate>Tue, 12 Jul 2011 10:56:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.jslog.com/?p=200#comment-443</guid>
		<description>Hi Fielstem,

Thanks for the question. As you can see, I am overriding the toFront method. If you look in the sources for Ext.Window.toFront, you see it&#039;s returning &#039;this&#039;, so I just keep the contract so as not to break other parts of the library. It is a common technique to return `this`, as it is useful for chainability. For example, having a reference to an Ext.Element you can chain methods like: el.show().addClass(&#039;test-class&#039;).applyStyles({ border:&#039;1px solid red&#039;})... and so on. Same with windows, you can do win.toFront().show(). Hope this is useful. Radu.</description>
		<content:encoded><![CDATA[<p>Hi Fielstem,</p>
<p>Thanks for the question. As you can see, I am overriding the toFront method. If you look in the sources for Ext.Window.toFront, you see it&#8217;s returning &#8216;this&#8217;, so I just keep the contract so as not to break other parts of the library. It is a common technique to return `this`, as it is useful for chainability. For example, having a reference to an Ext.Element you can chain methods like: el.show().addClass(&#8216;test-class&#8217;).applyStyles({ border:&#8217;1px solid red&#8217;})&#8230; and so on. Same with windows, you can do win.toFront().show(). Hope this is useful. Radu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fielstem</title>
		<link>http://www.jslog.com/window-tofront-and-toback-events/comment-page-1#comment-424</link>
		<dc:creator>fielstem</dc:creator>
		<pubDate>Sat, 09 Jul 2011 13:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.jslog.com/?p=200#comment-424</guid>
		<description>I am a ExtJS newbie, so apologies for the naive question.  I&#039;m still just reading code and trying to understand the javascript and ExtJS techniques.  My question is, when completing the toFront method why do you return this?  The method triggers the two events, as intended, so what purpose does returning this serve?  Any explanation or pointing me to a useful resource would be greatly appreciated.  Thanks!</description>
		<content:encoded><![CDATA[<p>I am a ExtJS newbie, so apologies for the naive question.  I&#8217;m still just reading code and trying to understand the javascript and ExtJS techniques.  My question is, when completing the toFront method why do you return this?  The method triggers the two events, as intended, so what purpose does returning this serve?  Any explanation or pointing me to a useful resource would be greatly appreciated.  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

