<?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: Techy Treasures #3: When is a mouseout not a mouseout?</title>
	<atom:link href="http://www.sitepoint.com/blogs/2008/11/25/techy-treasures-3-when-is-a-mouseout-not-a-mouseout/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2008/11/25/techy-treasures-3-when-is-a-mouseout-not-a-mouseout/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Sun, 22 Nov 2009 11:54:05 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: brothercake</title>
		<link>http://www.sitepoint.com/blogs/2008/11/25/techy-treasures-3-when-is-a-mouseout-not-a-mouseout/comment-page-1/#comment-840400</link>
		<dc:creator>brothercake</dc:creator>
		<pubDate>Thu, 27 Nov 2008 22:25:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3216#comment-840400</guid>
		<description>Yeah we totally could do that, but:

- prototyping to built-ins is not a good idea generally, for the reasons discussed

- I personally prefer to work with consistent code-base - to have every browser do the same thing, rather than one use a custom method and one use its own - if that&#039;s possible; it just makes me feel more confident</description>
		<content:encoded><![CDATA[<p>Yeah we totally could do that, but:</p>
<p>- prototyping to built-ins is not a good idea generally, for the reasons discussed</p>
<p>- I personally prefer to work with consistent code-base &#8211; to have every browser do the same thing, rather than one use a custom method and one use its own &#8211; if that&#8217;s possible; it just makes me feel more confident</p>]]></content:encoded>
	</item>
	<item>
		<title>By: boen_robot</title>
		<link>http://www.sitepoint.com/blogs/2008/11/25/techy-treasures-3-when-is-a-mouseout-not-a-mouseout/comment-page-1/#comment-840186</link>
		<dc:creator>boen_robot</dc:creator>
		<pubDate>Thu, 27 Nov 2008 13:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3216#comment-840186</guid>
		<description>I&#039;m confused... IE7 and below don&#039;t support prototyping (IE8 does btw), and other browsers do... yet, IE has the method we want to define, right?

So... can&#039;t we just do
&lt;code&gt;if (!Object.prototype.contains) {
//Define the contains() method as part of the prototype
}&lt;/code&gt;

And then use the contains() method as in IE. IE will use their built-in method (even in IE8, since the contains() method still exists), and everyone else will be using our method.</description>
		<content:encoded><![CDATA[<p>I&#8217;m confused&#8230; IE7 and below don&#8217;t support prototyping (IE8 does btw), and other browsers do&#8230; yet, IE has the method we want to define, right?</p>
<p>So&#8230; can&#8217;t we just do<br />
<code>if (!Object.prototype.contains) {
//Define the contains() method as part of the prototype
}</code></p>
<p>And then use the contains() method as in IE. IE will use their built-in method (even in IE8, since the contains() method still exists), and everyone else will be using our method.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ashwin</title>
		<link>http://www.sitepoint.com/blogs/2008/11/25/techy-treasures-3-when-is-a-mouseout-not-a-mouseout/comment-page-1/#comment-839653</link>
		<dc:creator>ashwin</dc:creator>
		<pubDate>Wed, 26 Nov 2008 15:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3216#comment-839653</guid>
		<description>Can you provide a simple example?</description>
		<content:encoded><![CDATA[<p>Can you provide a simple example?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.sitepoint.com/blogs/2008/11/25/techy-treasures-3-when-is-a-mouseout-not-a-mouseout/comment-page-1/#comment-838926</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 25 Nov 2008 12:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3216#comment-838926</guid>
		<description>Your contains method is so simple I did a double take before I got it :)

&lt;blockquote&gt;But we shouldn’t prototype custom methods to built-in objects, especially in code that other people will be working with, because those methods will show up in enumerators, potentially causing major problems for scripting that isn’t expecting them.&lt;/blockquote&gt;

I also stay away from doing this in my code, but when using libraries working with other existing code I have got into the habit of using hasOwnProperty when iterating.

Anyway, nice article.</description>
		<content:encoded><![CDATA[<p>Your contains method is so simple I did a double take before I got it :)</p>
<blockquote><p>But we shouldn’t prototype custom methods to built-in objects, especially in code that other people will be working with, because those methods will show up in enumerators, potentially causing major problems for scripting that isn’t expecting them.</p></blockquote>
<p>I also stay away from doing this in my code, but when using libraries working with other existing code I have got into the habit of using hasOwnProperty when iterating.</p>
<p>Anyway, nice article.</p>]]></content:encoded>
	</item>
</channel>
</rss>
