<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: console.log in Safari doesn&#8217;t &#8220;apply&#8221;. Bad Safari.</title>
	<atom:link href="http://jaybyjayfresh.com/2008/11/10/consolelog-in-safari-doesnt-apply-bad-safari/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaybyjayfresh.com/2008/11/10/consolelog-in-safari-doesnt-apply-bad-safari/</link>
	<description>Right-on slack-jawed yokel-type tech-farmer</description>
	<lastBuildDate>Wed, 01 Feb 2012 08:45:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Martin</title>
		<link>http://jaybyjayfresh.com/2008/11/10/consolelog-in-safari-doesnt-apply-bad-safari/#comment-3217</link>
		<dc:creator><![CDATA[Martin]]></dc:creator>
		<pubDate>Mon, 09 Jan 2012 13:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://jayfresh.wordpress.com/?p=335#comment-3217</guid>
		<description><![CDATA[In fact, even Safari 5.1.2 (OSX Lion) still behaves the same. I was glad to find this page as I was unable to see any error in my code ;-)]]></description>
		<content:encoded><![CDATA[<p>In fact, even Safari 5.1.2 (OSX Lion) still behaves the same. I was glad to find this page as I was unable to see any error in my code <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chubby</title>
		<link>http://jaybyjayfresh.com/2008/11/10/consolelog-in-safari-doesnt-apply-bad-safari/#comment-3073</link>
		<dc:creator><![CDATA[Chubby]]></dc:creator>
		<pubDate>Wed, 04 May 2011 21:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://jayfresh.wordpress.com/?p=335#comment-3073</guid>
		<description><![CDATA[Hey, that post leaves me feeling fooislh. Kudos to you!]]></description>
		<content:encoded><![CDATA[<p>Hey, that post leaves me feeling fooislh. Kudos to you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jayfresh</title>
		<link>http://jaybyjayfresh.com/2008/11/10/consolelog-in-safari-doesnt-apply-bad-safari/#comment-2550</link>
		<dc:creator><![CDATA[jayfresh]]></dc:creator>
		<pubDate>Wed, 12 Nov 2008 12:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://jayfresh.wordpress.com/?p=335#comment-2550</guid>
		<description><![CDATA[Top stuff Tim, thanks.]]></description>
		<content:encoded><![CDATA[<p>Top stuff Tim, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timothy Hatcher</title>
		<link>http://jaybyjayfresh.com/2008/11/10/consolelog-in-safari-doesnt-apply-bad-safari/#comment-2549</link>
		<dc:creator><![CDATA[Timothy Hatcher]]></dc:creator>
		<pubDate>Tue, 11 Nov 2008 18:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://jayfresh.wordpress.com/?p=335#comment-2549</guid>
		<description><![CDATA[If you just change:

console.log.apply(this, arguments)

to:

console.log.apply(console, arguments)

Everything should work.

And multiple arguments works in the newer WebKit (not Safari 3).]]></description>
		<content:encoded><![CDATA[<p>If you just change:</p>
<p>console.log.apply(this, arguments)</p>
<p>to:</p>
<p>console.log.apply(console, arguments)</p>
<p>Everything should work.</p>
<p>And multiple arguments works in the newer WebKit (not Safari 3).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Mahemoff</title>
		<link>http://jaybyjayfresh.com/2008/11/10/consolelog-in-safari-doesnt-apply-bad-safari/#comment-2548</link>
		<dc:creator><![CDATA[Michael Mahemoff]]></dc:creator>
		<pubDate>Tue, 11 Nov 2008 17:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://jayfresh.wordpress.com/?p=335#comment-2548</guid>
		<description><![CDATA[I find Safari&#039;s behaviour here quite weird. Normally, you&#039;d expect it to just ignore additional arguments. It&#039;s as if it&#039;s saying &quot;if (arguments.length &gt; 2) throw exception&quot;. An explicit check like that is the only way it could be doing something as annoying as this! That, or it&#039;s some native thing where the error is actually coming from calling a C/C++ function with the wrong number of args.

I often use this idiom on the fly, so I wanted a simpler bit of code that I can write quickly without having to look up. I think the following will achieve the same effect as above with less finger typing:

if (console &amp;&amp; console.firebug) { console.log.apply(this, arguments); }]]></description>
		<content:encoded><![CDATA[<p>I find Safari&#8217;s behaviour here quite weird. Normally, you&#8217;d expect it to just ignore additional arguments. It&#8217;s as if it&#8217;s saying &#8220;if (arguments.length &gt; 2) throw exception&#8221;. An explicit check like that is the only way it could be doing something as annoying as this! That, or it&#8217;s some native thing where the error is actually coming from calling a C/C++ function with the wrong number of args.</p>
<p>I often use this idiom on the fly, so I wanted a simpler bit of code that I can write quickly without having to look up. I think the following will achieve the same effect as above with less finger typing:</p>
<p>if (console &amp;&amp; console.firebug) { console.log.apply(this, arguments); }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saq Imtiaz</title>
		<link>http://jaybyjayfresh.com/2008/11/10/consolelog-in-safari-doesnt-apply-bad-safari/#comment-2547</link>
		<dc:creator><![CDATA[Saq Imtiaz]]></dc:creator>
		<pubDate>Tue, 11 Nov 2008 16:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://jayfresh.wordpress.com/?p=335#comment-2547</guid>
		<description><![CDATA[Having given it some more thought, I guess the difference is that without using apply the arguments would be passed as an array which isn&#039;t quite as useful but should still work.]]></description>
		<content:encoded><![CDATA[<p>Having given it some more thought, I guess the difference is that without using apply the arguments would be passed as an array which isn&#8217;t quite as useful but should still work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saq Imtiaz</title>
		<link>http://jaybyjayfresh.com/2008/11/10/consolelog-in-safari-doesnt-apply-bad-safari/#comment-2546</link>
		<dc:creator><![CDATA[Saq Imtiaz]]></dc:creator>
		<pubDate>Tue, 11 Nov 2008 16:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://jayfresh.wordpress.com/?p=335#comment-2546</guid>
		<description><![CDATA[How about:
# function log() {  
#    if(console) {  
#     console.log(arguments);  
#    }  
# } 

That should work just as well without needing to use apply, or am I missing something?]]></description>
		<content:encoded><![CDATA[<p>How about:<br />
# function log() {<br />
#    if(console) {<br />
#     console.log(arguments);<br />
#    }<br />
# } </p>
<p>That should work just as well without needing to use apply, or am I missing something?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

