<?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: Events: they&#8217;re not just for the DOM, you know</title>
	<atom:link href="http://blog.jcoglan.com/2010/02/21/events-theyre-not-just-for-the-dom-you-know/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jcoglan.com/2010/02/21/events-theyre-not-just-for-the-dom-you-know/</link>
	<description>This dirt was a building before</description>
	<lastBuildDate>Sat, 28 Aug 2010 16:24:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Mike Rumble</title>
		<link>http://blog.jcoglan.com/2010/02/21/events-theyre-not-just-for-the-dom-you-know/comment-page-1/#comment-4227</link>
		<dc:creator>Mike Rumble</dc:creator>
		<pubDate>Mon, 22 Feb 2010 19:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jcoglan.com/?p=533#comment-4227</guid>
		<description>@Tobie, thanks for the info - wasn&#039;t so much referring to the implementation details, but more to the fact that the API exposed by Prototype, by default only allows custom events on DOM elements.

The approach of using the &#039;document&#039; is a neat one, and I&#039;ve seen a mixin you created a while back (http://gist.github.com/204012) that does just that. Would love to have this kind of functionality rolled in to Prototype&#039;s core.</description>
		<content:encoded><![CDATA[<p>@Tobie, thanks for the info &#8211; wasn&#8217;t so much referring to the implementation details, but more to the fact that the API exposed by Prototype, by default only allows custom events on DOM elements.</p>
<p>The approach of using the &#8216;document&#8217; is a neat one, and I&#8217;ve seen a mixin you created a while back (<a href="http://gist.github.com/204012" rel="nofollow">http://gist.github.com/204012</a>) that does just that. Would love to have this kind of functionality rolled in to Prototype&#8217;s core.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Coglan</title>
		<link>http://blog.jcoglan.com/2010/02/21/events-theyre-not-just-for-the-dom-you-know/comment-page-1/#comment-4221</link>
		<dc:creator>James Coglan</dc:creator>
		<pubDate>Mon, 22 Feb 2010 11:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jcoglan.com/?p=533#comment-4221</guid>
		<description>Thanks for the reminder about Dean&#039;s article, it&#039;s definitely worth a read. I may amend the first article I&#039;ve drafted to cover robustness, or leave concerns like that for a final round-up piece on the all the patterns I&#039;ll cover. I want to keep the initial implementation examples really simple to communicate the basic ideas in a fairly language-neutral way.</description>
		<content:encoded><![CDATA[<p>Thanks for the reminder about Dean&#8217;s article, it&#8217;s definitely worth a read. I may amend the first article I&#8217;ve drafted to cover robustness, or leave concerns like that for a final round-up piece on the all the patterns I&#8217;ll cover. I want to keep the initial implementation examples really simple to communicate the basic ideas in a fairly language-neutral way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobie Langel</title>
		<link>http://blog.jcoglan.com/2010/02/21/events-theyre-not-just-for-the-dom-you-know/comment-page-1/#comment-4220</link>
		<dc:creator>Tobie Langel</dc:creator>
		<pubDate>Mon, 22 Feb 2010 11:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jcoglan.com/?p=533#comment-4220</guid>
		<description>Great article, James.

Mike, for the record, any true event handling system written in JavaScript will need to rely on host objects for error handling (you don&#039;t want an error thrown by an event handler to stop the event being dispatched to the other event handlers). Dean Edwards wrote a great article on the subject a while back: http://dean.edwards.name/weblog/2009/03/callbacks-vs-events/

Prototype&#039;s event model uses the DOM, other systems will rely on `setTimeout` to call handlers. Either way, you&#039;re bound to the browser environment.

That said, if you consider the `document` object as as the broker in a publisher/subscriber pattern, you can very well use Prototype&#039;s custom event system outside of the DOM.</description>
		<content:encoded><![CDATA[<p>Great article, James.</p>
<p>Mike, for the record, any true event handling system written in JavaScript will need to rely on host objects for error handling (you don&#8217;t want an error thrown by an event handler to stop the event being dispatched to the other event handlers). Dean Edwards wrote a great article on the subject a while back: <a href="http://dean.edwards.name/weblog/2009/03/callbacks-vs-events/" rel="nofollow">http://dean.edwards.name/weblog/2009/03/callbacks-vs-events/</a></p>
<p>Prototype&#8217;s event model uses the DOM, other systems will rely on `setTimeout` to call handlers. Either way, you&#8217;re bound to the browser environment.</p>
<p>That said, if you consider the `document` object as as the broker in a publisher/subscriber pattern, you can very well use Prototype&#8217;s custom event system outside of the DOM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Rumble</title>
		<link>http://blog.jcoglan.com/2010/02/21/events-theyre-not-just-for-the-dom-you-know/comment-page-1/#comment-4216</link>
		<dc:creator>Mike Rumble</dc:creator>
		<pubDate>Sun, 21 Feb 2010 23:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jcoglan.com/?p=533#comment-4216</guid>
		<description>Great article.

I use Prototype a fair bit, which suffers from the same limitations - you can subscribe to, and fire &quot;custom&quot; events, but only on DOM elements.

Can&#039;t wait to read the rest in your series!</description>
		<content:encoded><![CDATA[<p>Great article.</p>
<p>I use Prototype a fair bit, which suffers from the same limitations &#8211; you can subscribe to, and fire &#8220;custom&#8221; events, but only on DOM elements.</p>
<p>Can&#8217;t wait to read the rest in your series!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
