<?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: Prototype 1.6.0 RC1: Changes to the Class and Event APIs, Hash rewrite, and bug fixes</title>
	<atom:link href="http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Wed, 17 Mar 2010 03:25:12 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ben</title>
		<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/comment-page-1#comment-257417</link>
		<dc:creator>ben</dc:creator>
		<pubDate>Fri, 19 Oct 2007 13:06:58 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes#comment-257417</guid>
		<description>@mislav: whoops, no bug with the domready event, I made a pretty noob mistake in not noticing the reformat of the eventtype (&quot;dom:loaded&quot;), nice way of standardizing eventtypes without losing the context btw ;).
.
Hash class is also nice and cleaner this way, but imagine the overhaul needed for existing applications that built heavily on the hash class =P hash[key].assets[i] ===&gt; hash.get(&quot;key&quot;).assets[i]
.
Also, simulating the getter/setter functionality like this, slows down performance/speed a bit and might be noticable on large scale applications. (which made me stop using objects with getter/setters in some projects, directly changing values is faster).</description>
		<content:encoded><![CDATA[<p>@mislav: whoops, no bug with the domready event, I made a pretty noob mistake in not noticing the reformat of the eventtype (&#8221;dom:loaded&#8221;), nice way of standardizing eventtypes without losing the context btw ;).<br />
.<br />
Hash class is also nice and cleaner this way, but imagine the overhaul needed for existing applications that built heavily on the hash class =P hash[key].assets[i] ===&gt; hash.get(&#8221;key&#8221;).assets[i]<br />
.<br />
Also, simulating the getter/setter functionality like this, slows down performance/speed a bit and might be noticable on large scale applications. (which made me stop using objects with getter/setters in some projects, directly changing values is faster).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mislav</title>
		<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/comment-page-1#comment-257308</link>
		<dc:creator>Mislav</dc:creator>
		<pubDate>Wed, 17 Oct 2007 19:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes#comment-257308</guid>
		<description>Ben: I don&#039;t know what error are you talking about, but feel free to &lt;a href=&quot;http://prototypejs.org/contribute&quot; rel=&quot;nofollow&quot;&gt;report the bug properly&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Ben: I don&#8217;t know what error are you talking about, but feel free to <a href="http://prototypejs.org/contribute" rel="nofollow">report the bug properly</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: advanced</title>
		<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/comment-page-1#comment-257284</link>
		<dc:creator>advanced</dc:creator>
		<pubDate>Wed, 17 Oct 2007 11:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes#comment-257284</guid>
		<description>Sam is my Hero, pave away my man! ..)
Personally I Digg the revised hash class, much cleaner / tighter IMHO.</description>
		<content:encoded><![CDATA[<p>Sam is my Hero, pave away my man! ..)<br />
Personally I Digg the revised hash class, much cleaner / tighter IMHO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/comment-page-1#comment-257276</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 17 Oct 2007 10:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes#comment-257276</guid>
		<description>ouch... Good update in general, but I think many people will dislike the new Hash changes if they used it extensively.

The domready event on the document namespace needs a looking at, it&#039;s still broken, but at least the embaracing error is gone =P</description>
		<content:encoded><![CDATA[<p>ouch&#8230; Good update in general, but I think many people will dislike the new Hash changes if they used it extensively.</p>
<p>The domready event on the document namespace needs a looking at, it&#8217;s still broken, but at least the embaracing error is gone =P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Les</title>
		<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/comment-page-1#comment-257267</link>
		<dc:creator>Les</dc:creator>
		<pubDate>Wed, 17 Oct 2007 03:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes#comment-257267</guid>
		<description>In addition to FF 3, Opera 9.5 supports getElementsByClassName natively.</description>
		<content:encoded><![CDATA[<p>In addition to FF 3, Opera 9.5 supports getElementsByClassName natively.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Stephenson</title>
		<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/comment-page-1#comment-257263</link>
		<dc:creator>Sam Stephenson</dc:creator>
		<pubDate>Wed, 17 Oct 2007 00:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes#comment-257263</guid>
		<description>Hi Philip-

That&#039;s a good question.  You&#039;re right, getElementsByClassName does not yet exist in all browsers (it&#039;s only available in the Firefox 3 alphas now).  But Firefox&#039;s implementation is incompatible with ours (it returns a NodeList instead of an Array, so you&#039;d need to convert its return value to an array first before using it like you&#039;d be accustomed to using Prototype&#039;s), and they&#039;ve unfortunately chosen to implement it in such a way that prevents us from overriding it with our own version (see &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=390411&quot; rel=&quot;nofollow&quot;&gt;Bugzilla #390411&lt;/a&gt; for details).

Part of Prototype&#039;s design philosophy is that our API should behave consistently on all supported browsers.  So in order to pave the way for Firefox 3 compatibility, we&#039;ll have to deprecate our implementation of getElementsByClassName.  FWIW, Dean Edwards has &lt;a href=&quot;http://dean.edwards.name/weblog/2007/08/names/&quot; rel=&quot;nofollow&quot;&gt;chosen to do the same&lt;/a&gt; in his Base2 library.</description>
		<content:encoded><![CDATA[<p>Hi Philip-</p>
<p>That&#8217;s a good question.  You&#8217;re right, getElementsByClassName does not yet exist in all browsers (it&#8217;s only available in the Firefox 3 alphas now).  But Firefox&#8217;s implementation is incompatible with ours (it returns a NodeList instead of an Array, so you&#8217;d need to convert its return value to an array first before using it like you&#8217;d be accustomed to using Prototype&#8217;s), and they&#8217;ve unfortunately chosen to implement it in such a way that prevents us from overriding it with our own version (see <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=390411" rel="nofollow">Bugzilla #390411</a> for details).</p>
<p>Part of Prototype&#8217;s design philosophy is that our API should behave consistently on all supported browsers.  So in order to pave the way for Firefox 3 compatibility, we&#8217;ll have to deprecate our implementation of getElementsByClassName.  FWIW, Dean Edwards has <a href="http://dean.edwards.name/weblog/2007/08/names/" rel="nofollow">chosen to do the same</a> in his Base2 library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joao</title>
		<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/comment-page-1#comment-257262</link>
		<dc:creator>Joao</dc:creator>
		<pubDate>Wed, 17 Oct 2007 00:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes#comment-257262</guid>
		<description>OMG!!! When I tested Prototype 1.6 a few months ago, I found it somewhat clunky in the new Class support, but they seem to have addressed my concerns superbly and I didn&#039;t need to tell them how to do it! Great job! Hopefully this will mean that I&#039;ll be able to adopt it in a huge scale, like in potentially hundreds of classes.</description>
		<content:encoded><![CDATA[<p>OMG!!! When I tested Prototype 1.6 a few months ago, I found it somewhat clunky in the new Class support, but they seem to have addressed my concerns superbly and I didn&#8217;t need to tell them how to do it! Great job! Hopefully this will mean that I&#8217;ll be able to adopt it in a huge scale, like in potentially hundreds of classes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobie Langel</title>
		<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/comment-page-1#comment-257261</link>
		<dc:creator>Tobie Langel</dc:creator>
		<pubDate>Wed, 17 Oct 2007 00:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes#comment-257261</guid>
		<description>Philip: use $$(&#039;.className&#039;) instead or element.select(&#039;.className&#039;);</description>
		<content:encoded><![CDATA[<p>Philip: use $$(&#8217;.className&#8217;) instead or element.select(&#8217;.className&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Holton</title>
		<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/comment-page-1#comment-257259</link>
		<dc:creator>Mark Holton</dc:creator>
		<pubDate>Wed, 17 Oct 2007 00:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes#comment-257259</guid>
		<description>...also new from Prototype:
http://prototypejs.org/learn/class-inheritance</description>
		<content:encoded><![CDATA[<p>&#8230;also new from Prototype:<br />
<a href="http://prototypejs.org/learn/class-inheritance" rel="nofollow">http://prototypejs.org/learn/class-inheritance</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Plante</title>
		<link>http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes/comment-page-1#comment-257258</link>
		<dc:creator>Philip Plante</dc:creator>
		<pubDate>Wed, 17 Oct 2007 00:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/prototype-160-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes#comment-257258</guid>
		<description>Maybe I am wrong, but &quot;document.getElementsByClassName&quot; does not yet exist in all the browsers.  So how can they remove such a useful function just because FF 3.0 is going to support it in a better way?</description>
		<content:encoded><![CDATA[<p>Maybe I am wrong, but &#8220;document.getElementsByClassName&#8221; does not yet exist in all the browsers.  So how can they remove such a useful function just because FF 3.0 is going to support it in a better way?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
