<?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: Object.Event: Event model for all JS Objects</title>
	<atom:link href="http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: parag</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-252515</link>
		<dc:creator>parag</dc:creator>
		<pubDate>Tue, 10 Jul 2007 05:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-252515</guid>
		<description>Nice work dude.</description>
		<content:encoded><![CDATA[<p>Nice work dude.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251832</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Fri, 22 Jun 2007 09:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251832</guid>
		<description>(to the Moo experts) how does the Moo observer implementation compare to the YUI observer implementation?</description>
		<content:encoded><![CDATA[<p>(to the Moo experts) how does the Moo observer implementation compare to the YUI observer implementation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251798</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Thu, 21 Jun 2007 12:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251798</guid>
		<description>Its news to Prototype users. Keep up the great work Ryan.</description>
		<content:encoded><![CDATA[<p>Its news to Prototype users. Keep up the great work Ryan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Johnson</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251792</link>
		<dc:creator>Ryan Johnson</dc:creator>
		<pubDate>Thu, 21 Jun 2007 05:36:36 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251792</guid>
		<description>But this one goes to 11...</description>
		<content:encoded><![CDATA[<p>But this one goes to 11&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gonchuki</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251788</link>
		<dc:creator>gonchuki</dc:creator>
		<pubDate>Wed, 20 Jun 2007 23:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251788</guid>
		<description>@Ryan et al
I know what this code does, we (mootools users) were just saying this has already been part of moo for a long time and has the same functionality
(yes Ryan, just apply $extend to &#039;myClass&#039; instead of &#039;testClass&#039; from my pastie and that covers your second point of applying the Events to just one instance.)
Just to keep things clear, this is no bashing @ Ryan, it&#039;s just telling this is not breaking news neither you should necessarily depend on this code to apply events on any object of your code. (except that it&#039;s a nice tiny piece of js)</description>
		<content:encoded><![CDATA[<p>@Ryan et al<br />
I know what this code does, we (mootools users) were just saying this has already been part of moo for a long time and has the same functionality<br />
(yes Ryan, just apply $extend to &#8216;myClass&#8217; instead of &#8216;testClass&#8217; from my pastie and that covers your second point of applying the Events to just one instance.)<br />
Just to keep things clear, this is no bashing @ Ryan, it&#8217;s just telling this is not breaking news neither you should necessarily depend on this code to apply events on any object of your code. (except that it&#8217;s a nice tiny piece of js)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yaiwasright</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251782</link>
		<dc:creator>yaiwasright</dc:creator>
		<pubDate>Wed, 20 Jun 2007 20:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251782</guid>
		<description>@gonchuki - Ryan Johnson&#039;s code can do the same thing on regular objects via Object.Event.extend(myStaticObject);</description>
		<content:encoded><![CDATA[<p>@gonchuki &#8211; Ryan Johnson&#8217;s code can do the same thing on regular objects via Object.Event.extend(myStaticObject);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Johnson</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251778</link>
		<dc:creator>Ryan Johnson</dc:creator>
		<pubDate>Wed, 20 Jun 2007 19:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251778</guid>
		<description>Maybe this could clear it up a little bit. Object.Event can register observers in three ways:

1) to &quot;static&quot; objects (in Java or PHP you&#039;d be naming the members all static because you&#039;re never going to create an instance of the class)
2) to instance objects (anything that was created by calling new Whatever())
3) to all instances of a class (all instances created by new Whatever())

That was far from the most elegant explanation, but does that clear up confusion for folks?</description>
		<content:encoded><![CDATA[<p>Maybe this could clear it up a little bit. Object.Event can register observers in three ways:</p>
<p>1) to &#8220;static&#8221; objects (in Java or PHP you&#8217;d be naming the members all static because you&#8217;re never going to create an instance of the class)<br />
2) to instance objects (anything that was created by calling new Whatever())<br />
3) to all instances of a class (all instances created by new Whatever())</p>
<p>That was far from the most elegant explanation, but does that clear up confusion for folks?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gonchuki</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251765</link>
		<dc:creator>gonchuki</dc:creator>
		<pubDate>Wed, 20 Jun 2007 16:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251765</guid>
		<description>@ithink:
let me remember you that i said *any* object.
a Class is an object, and as such you can $extend it with whatever you want, that includes Events.
what may confuse you is that in moo a Class already has an &#039;implement&#039; method as described in Valerio&#039;s link to the docs, nevertheless the $extend approach is still applicable in this case.
http://pastie.caboo.se/72065
test it, enjoy it :)</description>
		<content:encoded><![CDATA[<p>@ithink:<br />
let me remember you that i said *any* object.<br />
a Class is an object, and as such you can $extend it with whatever you want, that includes Events.<br />
what may confuse you is that in moo a Class already has an &#8216;implement&#8217; method as described in Valerio&#8217;s link to the docs, nevertheless the $extend approach is still applicable in this case.<br />
<a href="http://pastie.caboo.se/72065" rel="nofollow">http://pastie.caboo.se/72065</a><br />
test it, enjoy it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ithink</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251760</link>
		<dc:creator>ithink</dc:creator>
		<pubDate>Wed, 20 Jun 2007 12:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251760</guid>
		<description>@ gonchuki - I think Ryans approach works on both classes and objects.</description>
		<content:encoded><![CDATA[<p>@ gonchuki &#8211; I think Ryans approach works on both classes and objects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251751</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Wed, 20 Jun 2007 06:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251751</guid>
		<description>How is this a resemblance of Dojo? Dojo&#039;s event system is based on AOP. The event model mentioned in this article looks just like the traditional observer-dispatcher pattern.</description>
		<content:encoded><![CDATA[<p>How is this a resemblance of Dojo? Dojo&#8217;s event system is based on AOP. The event model mentioned in this article looks just like the traditional observer-dispatcher pattern.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Johnson</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251746</link>
		<dc:creator>Ryan Johnson</dc:creator>
		<pubDate>Wed, 20 Jun 2007 02:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251746</guid>
		<description>The Mootools Event class is indeed pretty similar. I think the class &amp; instance observation differentiates it a little bit, but it&#039;s pretty similar overall. I hadn&#039;t seen that before today despite having used mootools on a few smaller projects.</description>
		<content:encoded><![CDATA[<p>The Mootools Event class is indeed pretty similar. I think the class &amp; instance observation differentiates it a little bit, but it&#8217;s pretty similar overall. I hadn&#8217;t seen that before today despite having used mootools on a few smaller projects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gonchuki</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251745</link>
		<dc:creator>gonchuki</dc:creator>
		<pubDate>Wed, 20 Jun 2007 01:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251745</guid>
		<description>in moo you can even have ANY object to be an Event-driven object, not only classes have that ability.

it&#039;s as simple as this:
$extend(myDummyObject, new Events)

i&#039;m already developing lots of stuff based on this approach.</description>
		<content:encoded><![CDATA[<p>in moo you can even have ANY object to be an Event-driven object, not only classes have that ability.</p>
<p>it&#8217;s as simple as this:<br />
$extend(myDummyObject, new Events)</p>
<p>i&#8217;m already developing lots of stuff based on this approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mooforu</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251740</link>
		<dc:creator>mooforu</dc:creator>
		<pubDate>Tue, 19 Jun 2007 20:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251740</guid>
		<description>I stand corrected. 8)</description>
		<content:encoded><![CDATA[<p>I stand corrected. 8)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valerio</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251737</link>
		<dc:creator>Valerio</dc:creator>
		<pubDate>Tue, 19 Jun 2007 19:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251737</guid>
		<description>Yes, it does.

MooTools has Class Events: http://docs.mootools.net/Class/Class-Extras.js#Events</description>
		<content:encoded><![CDATA[<p>Yes, it does.</p>
<p>MooTools has Class Events: <a href="http://docs.mootools.net/Class/Class-Extras.js#Events" rel="nofollow">http://docs.mootools.net/Class/Class-Extras.js#Events</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nomooforu</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251735</link>
		<dc:creator>nomooforu</dc:creator>
		<pubDate>Tue, 19 Jun 2007 18:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251735</guid>
		<description>No I don&#039;t believe moo does. $(myElement).addEvent() and $().fireEvent() are tied to the DOM element and not any Object.</description>
		<content:encoded><![CDATA[<p>No I don&#8217;t believe moo does. $(myElement).addEvent() and $().fireEvent() are tied to the DOM element and not any Object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251733</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Tue, 19 Jun 2007 18:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251733</guid>
		<description>MooTools has something similar. Really, really similar.</description>
		<content:encoded><![CDATA[<p>MooTools has something similar. Really, really similar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: theIntuitionist</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251731</link>
		<dc:creator>theIntuitionist</dc:creator>
		<pubDate>Tue, 19 Jun 2007 17:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251731</guid>
		<description>Hi Ryan!  Well, your post answer&#039;s my question.  I wonder if you could make an alternate syntax for your library that mimics the watch syntax.  A lot of Prototype functions have alternate names....</description>
		<content:encoded><![CDATA[<p>Hi Ryan!  Well, your post answer&#8217;s my question.  I wonder if you could make an alternate syntax for your library that mimics the watch syntax.  A lot of Prototype functions have alternate names&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Johnson</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251730</link>
		<dc:creator>Ryan Johnson</dc:creator>
		<pubDate>Tue, 19 Jun 2007 17:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251730</guid>
		<description>watch is great, but mozilla only the last time I checked. Have others caught up?</description>
		<content:encoded><![CDATA[<p>watch is great, but mozilla only the last time I checked. Have others caught up?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: theIntuitionist</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251729</link>
		<dc:creator>theIntuitionist</dc:creator>
		<pubDate>Tue, 19 Jun 2007 17:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251729</guid>
		<description>I like the look of this, but I wonder if the &#039;watch&#039; keyword isn&#039;t a simpler way of achieving the same effect?</description>
		<content:encoded><![CDATA[<p>I like the look of this, but I wonder if the &#8216;watch&#8217; keyword isn&#8217;t a simpler way of achieving the same effect?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Sanderson</title>
		<link>http://ajaxian.com/archives/objectevent-event-model-for-all-js-objects/comment-page-1#comment-251723</link>
		<dc:creator>Adam Sanderson</dc:creator>
		<pubDate>Tue, 19 Jun 2007 15:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2500#comment-251723</guid>
		<description>Looks really handy.  I&#039;m going to keep this is mind :)</description>
		<content:encoded><![CDATA[<p>Looks really handy.  I&#8217;m going to keep this is mind :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

