<?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"
	>
<channel>
	<title>Comments on: Firebug + Dijit tips</title>
	<atom:link href="http://dojocampus.org/content/2008/03/13/firebug-dijit-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://dojocampus.org/content/2008/03/13/firebug-dijit-tips/</link>
	<description>The definitive resource for all things Dojo: past, present, future.</description>
	<pubDate>Fri, 21 Nov 2008 03:22:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: News &#187; Firebug + Dijit tips</title>
		<link>http://dojocampus.org/content/2008/03/13/firebug-dijit-tips/#comment-55</link>
		<dc:creator>News &#187; Firebug + Dijit tips</dc:creator>
		<pubDate>Tue, 25 Mar 2008 10:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=68#comment-55</guid>
		<description>[...] Firebug + Dijit tips. News to me: Firebug has a magic $1 variable which corresponds to the currently selected node. Very handy. [...]</description>
		<content:encoded><![CDATA[<p>[...] Firebug + Dijit tips. News to me: Firebug has a magic $1 variable which corresponds to the currently selected node. Very handy. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-03-15 &#171; d2blogtest</title>
		<link>http://dojocampus.org/content/2008/03/13/firebug-dijit-tips/#comment-40</link>
		<dc:creator>links for 2008-03-15 &#171; d2blogtest</dc:creator>
		<pubDate>Sat, 15 Mar 2008 23:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=68#comment-40</guid>
		<description>[...] DojoCampus » Blog Archive » Firebug + Dijit tips &#8220;in the firebug console, your selected node is available as $1&#8243; (tags: firebug webdev dojo) [...]</description>
		<content:encoded><![CDATA[<p>[...] DojoCampus » Blog Archive » Firebug + Dijit tips &#8220;in the firebug console, your selected node is available as $1&#8243; (tags: firebug webdev dojo) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pottedmeat</title>
		<link>http://dojocampus.org/content/2008/03/13/firebug-dijit-tips/#comment-32</link>
		<dc:creator>pottedmeat</dc:creator>
		<pubDate>Sat, 15 Mar 2008 04:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=68#comment-32</guid>
		<description>@sfoster I can imagine taking that a step further and using Firebug's inspect function. Instead of logging out your result, you could build a property bag of the important information you care about from the widget and open it in the DOM tab.

&lt;pre lang="javascript"&gt;
inspect((function(widget){ return { size: dojo.marginBox(widget.child.domNode)[widget.horizontal ? 'h' : 'w'], id: widget.id }; })(dijit.getEnclosingWidget($1)), 'dom')
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@sfoster I can imagine taking that a step further and using Firebug&#8217;s inspect function. Instead of logging out your result, you could build a property bag of the important information you care about from the widget and open it in the DOM tab.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;">inspect<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>widget<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#123;</span> size<span style="color: #339933;">:</span> dojo.<span style="color: #660066;">marginBox</span><span style="color: #009900;">&#40;</span>widget.<span style="color: #660066;">child</span>.<span style="color: #660066;">domNode</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>widget.<span style="color: #660066;">horizontal</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">'h'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">'w'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> id<span style="color: #339933;">:</span> widget.<span style="color: #660066;">id</span> <span style="color: #009900;">&#125;</span>; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>dijit.<span style="color: #660066;">getEnclosingWidget</span><span style="color: #009900;">&#40;</span>$<span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'dom'</span><span style="color: #009900;">&#41;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: sfoster</title>
		<link>http://dojocampus.org/content/2008/03/13/firebug-dijit-tips/#comment-31</link>
		<dc:creator>sfoster</dc:creator>
		<pubDate>Fri, 14 Mar 2008 22:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=68#comment-31</guid>
		<description>Here's another juicy one-liner that might give you some ideas: 

&lt;pre class="javascript"&gt;(function() { console.log("child size: %s", dojo.marginBox(this.child.domNode)[ this.horizontal ? 'h' : 'w' ]) }).call(dijit.byNode($1))&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s another juicy one-liner that might give you some ideas: </p>
<pre class="javascript">(function() { console.log("child size: %s", dojo.marginBox(this.child.domNode)[ this.horizontal ? 'h' : 'w' ]) }).call(dijit.byNode($1))</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: SitePen Blog &#187; Dojo Storage and Dojo Bling</title>
		<link>http://dojocampus.org/content/2008/03/13/firebug-dijit-tips/#comment-29</link>
		<dc:creator>SitePen Blog &#187; Dojo Storage and Dojo Bling</dc:creator>
		<pubDate>Fri, 14 Mar 2008 21:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=68#comment-29</guid>
		<description>[...] Sam Foster uses Firebug on a daily basis while working with Dijit. He recently explained some Firebug productivity methods . These are some of the techniques that the new SitePen Support team uses to tackle your [...]</description>
		<content:encoded><![CDATA[<p>[...] Sam Foster uses Firebug on a daily basis while working with Dijit. He recently explained some Firebug productivity methods . These are some of the techniques that the new SitePen Support team uses to tackle your [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mccain</title>
		<link>http://dojocampus.org/content/2008/03/13/firebug-dijit-tips/#comment-22</link>
		<dc:creator>mccain</dc:creator>
		<pubDate>Thu, 13 Mar 2008 12:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=68#comment-22</guid>
		<description>wow, that $1 thing is cool! didnt know it. Thx</description>
		<content:encoded><![CDATA[<p>wow, that $1 thing is cool! didnt know it. Thx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
