<?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: Keep Original Variable State Between Event Binding and Execution</title>
	<atom:link href="http://www.briangrinstead.com/blog/keep-original-variable-state-between-event-binding-and-execution/feed" rel="self" type="application/rss+xml" />
	<link>http://www.briangrinstead.com/blog/keep-original-variable-state-between-event-binding-and-execution</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 01:23:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Brian</title>
		<link>http://www.briangrinstead.com/blog/keep-original-variable-state-between-event-binding-and-execution/comment-page-1#comment-14993</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 19 Jan 2011 02:29:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.briangrinstead.com/blog/?p=291#comment-14993</guid>
		<description>Good tips... Usually I pay a lot of attention to performance, but in this demo I was just wanting to make what was going on with the variable state as clear as possible.</description>
		<content:encoded><![CDATA[<p>Good tips&#8230; Usually I pay a lot of attention to performance, but in this demo I was just wanting to make what was going on with the variable state as clear as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wildcard</title>
		<link>http://www.briangrinstead.com/blog/keep-original-variable-state-between-event-binding-and-execution/comment-page-1#comment-14673</link>
		<dc:creator>wildcard</dc:creator>
		<pubDate>Fri, 14 Jan 2011 13:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.briangrinstead.com/blog/?p=291#comment-14673</guid>
		<description>oh, you really shouldn&#039;t do it this way. I mean, the closure is OK, but appending HTML in each iteration? DOM is terribly slow. what you should do is store generated HTML in some array, push elements to the array in your loop, and then use Array.prototype.join() to merge the whole thing + append it to your container. also, you&#039;d probably want to use event delegation instead of assigning event handler for each element.</description>
		<content:encoded><![CDATA[<p>oh, you really shouldn&#8217;t do it this way. I mean, the closure is OK, but appending HTML in each iteration? DOM is terribly slow. what you should do is store generated HTML in some array, push elements to the array in your loop, and then use Array.prototype.join() to merge the whole thing + append it to your container. also, you&#8217;d probably want to use event delegation instead of assigning event handler for each element.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

