<?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>occasionally useful &#187; javascript</title>
	<atom:link href="http://blog.maxaller.name/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.maxaller.name</link>
	<description>ruby, ubuntu, etc</description>
	<lastBuildDate>Sun, 11 Jul 2010 07:01:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Debugging unobtrusive javascript in jQuery</title>
		<link>http://blog.maxaller.name/2009/09/debugging-unobtrusive-javascript-in-jquery/</link>
		<comments>http://blog.maxaller.name/2009/09/debugging-unobtrusive-javascript-in-jquery/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 03:49:34 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[unobtrusive]]></category>

		<guid isPermaLink="false">http://blog.maxaller.name/?p=194</guid>
		<description><![CDATA[So if you work for a large enterprise website like I do, where each page loads dozens or hundreds of kilobytes of javascript, it can be hard to figure out exactly what happens when you click that div and something magically happens, due to the wonders of unobtrusive javascript.
Or, to rephrase the question, "I know [...]]]></description>
			<content:encoded><![CDATA[<p>So if you work for a large enterprise website like I do, where each page loads dozens or hundreds of kilobytes of javascript, it can be hard to figure out exactly what happens when you click that div and something magically happens, due to the wonders of unobtrusive javascript.</p>
<p>Or, to rephrase the question, "I know how to add event handlers to an object -- how do I enumerate what's already been attached?"</p>
<p>And it's pretty easy, but unfortunately it doesn't use a public API.  Anyway, try this in Firebug:</p>
<p><code lang="javascript"><br />
  $("#the_button").data("events");<br />
</code></p>
<p>If there are any events on that element, they'll be displayed.  The only drawback is...you have to know exactly which element the events are attached to, or guess around a bit.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maxaller.name/2009/09/debugging-unobtrusive-javascript-in-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sprockets &#8212; it&#039;s a good thing</title>
		<link>http://blog.maxaller.name/2009/02/sprockets-its-a-good-thing/</link>
		<comments>http://blog.maxaller.name/2009/02/sprockets-its-a-good-thing/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 06:23:59 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[processor]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[sprockets]]></category>

		<guid isPermaLink="false">http://blog.maxaller.name/?p=72</guid>
		<description><![CDATA[Came across an interesting utility library: Sprockets.  It's a Ruby-powered Javascript preprocessor.  It's used for three things -- embedding other js files into the current js file, ensuring required assets get copied to the assets root, and for interpolating constants (like version numbers, author, etc) into the js file.  I found it [...]]]></description>
			<content:encoded><![CDATA[<p>Came across an interesting utility library: <a href="http://www.rubyinside.com/sprockets-a-ruby-powered-javascript-dependency-library-from-37signals-1520.html">Sprockets</a>.  It's a Ruby-powered Javascript preprocessor.  It's used for three things -- embedding other js files into the current js file, ensuring required assets get copied to the assets root, and for interpolating constants (like version numbers, author, etc) into the js file.  I found it browsing Prototype.js's source -- really cool stuff.  Also funny because I came across it by accident and I was just contemplating designing an identical tool.  Good thing and bad thing at the same time <img src='http://blog.maxaller.name/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maxaller.name/2009/02/sprockets-its-a-good-thing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
