<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>benwatts.ca &#187; tool</title>
	<atom:link href="http://benwatts.ca/tag/tool/feed/" rel="self" type="application/rss+xml" />
	<link>http://benwatts.ca</link>
	<description>Designer and Frontend Developer in Ottawa, Canada</description>
	<lastBuildDate>Fri, 22 Jul 2011 19:00:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JS Object Iterator</title>
		<link>http://benwatts.ca/2008/js-object-iterator/</link>
		<comments>http://benwatts.ca/2008/js-object-iterator/#comments</comments>
		<pubDate>Fri, 02 May 2008 16:21:38 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://seaturtle.rainiscold.ca/?p=17</guid>
		<description><![CDATA[Extremely handy when you&#8217;re dealing with an Object and have no idea what it&#8217;s methods or properties are. ESPECIALLY when there&#8217;s no documentation and you get an alert saying [Object] or whatever. function deconstruct&#40;what&#41;&#123; &#160; &#160; obj = eval&#40;what&#41;; &#160; &#160; var temp = &#34;&#34;; &#160; &#160; for &#40;x in obj&#41; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Extremely handy when you&#8217;re dealing with an Object and have no idea what it&#8217;s methods or properties are. ESPECIALLY when there&#8217;s no documentation and you get an alert saying [Object] or whatever.</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">function</span> deconstruct<span style="color: #009900;">&#40;</span>what<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; obj <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span>what<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> temp <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>x <span style="color: #000066; font-weight: bold;">in</span> obj<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp <span style="color: #339933;">+=</span> x <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;: &quot;</span> <span style="color: #339933;">+</span> obj<span style="color: #009900;">&#91;</span>x<span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span>temp<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p>I wish I remember the source for this because it has to be one of the handiest functions ever. </p>
]]></content:encoded>
			<wfw:commentRss>http://benwatts.ca/2008/js-object-iterator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

