<?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"
	>
<channel>
	<title>Comments on: JS Generics</title>
	<atom:link href="http://erik.eae.net/archives/2006/02/28/00.39.52/feed/" rel="self" type="application/rss+xml" />
	<link>http://erik.eae.net/archives/2006/02/28/00.39.52/</link>
	<description>The Weblog of Erik Arvidsson</description>
	<pubDate>Thu, 28 Aug 2008 14:09:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: crisp's blog &#187; Blog Archive &#187; Crossbrowser Array Generics</title>
		<link>http://erik.eae.net/archives/2006/02/28/00.39.52/#comment-102457</link>
		<dc:creator>crisp's blog &#187; Blog Archive &#187; Crossbrowser Array Generics</dc:creator>
		<pubDate>Sun, 19 Aug 2007 23:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://erik.eae.net/archives/2006/02/28/00.22.49/#comment-102457</guid>
		<description>[...] would be much cooler if we could use those techniques in all modern browsers. Luckily Erik Arvidsson already gave us his version of JS Generics back in 2006(!) I also found a demonstration of crossbrowser generics in Dan Webb's Scripting [...]</description>
		<content:encoded><![CDATA[<p>[...] would be much cooler if we could use those techniques in all modern browsers. Luckily Erik Arvidsson already gave us his version of JS Generics back in 2006(!) I also found a demonstration of crossbrowser generics in Dan Webb&#8217;s Scripting [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bisna Blog &#187; Blog Archive &#187; Bisna is nearby&#8230;</title>
		<link>http://erik.eae.net/archives/2006/02/28/00.39.52/#comment-12809</link>
		<dc:creator>Bisna Blog &#187; Blog Archive &#187; Bisna is nearby&#8230;</dc:creator>
		<pubDate>Thu, 27 Apr 2006 01:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://erik.eae.net/archives/2006/02/28/00.22.49/#comment-12809</guid>
		<description>[...] Bisna grows so much that it&#8217;s not unrecognizable. A large set of JavaScript objects were created, some code is not my own creation, I can tell you; but the result is really impressive. Bisna pretends to be a new PHP framework in the future (and if I have enough time). Now it&#8217;s only intended to be the replacer for pAjax. So, it&#8217;s time to show you how the new code will look like: [...]</description>
		<content:encoded><![CDATA[<p>[...] Bisna grows so much that it&#8217;s not unrecognizable. A large set of JavaScript objects were created, some code is not my own creation, I can tell you; but the result is really impressive. Bisna pretends to be a new PHP framework in the future (and if I have enough time). Now it&#8217;s only intended to be the replacer for pAjax. So, it&#8217;s time to show you how the new code will look like: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serge</title>
		<link>http://erik.eae.net/archives/2006/02/28/00.39.52/#comment-11198</link>
		<dc:creator>Serge</dc:creator>
		<pubDate>Wed, 22 Mar 2006 05:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://erik.eae.net/archives/2006/02/28/00.22.49/#comment-11198</guid>
		<description>Hi,
I'm not as advanced as you are but I am seeing this page with Opera and it throws these errors:



Inline script thread
Error:
name: TypeError
message: Statement on line 128: Expression evaluated to null or undefined and is not convertible to Object: xmlHttp
Backtrace:
  Line 128 of linked script http://erik.eae.net/playground/newpost/newpost.js
    xmlHttp.onreadystatechange = function () 
{
if (xmlHttp.readyState == 4)
{
self.onLoad();
}
}
;
  Line 105 of linked script http://erik.eae.net/playground/newpost/newpost.js
    this.reload();
  Line 98 of linked script http://erik.eae.net/playground/newpost/newpost.js
    this.setUri(sUri);
  Line 2 of inline#1 script in http://erik.eae.net/archives/2006/02/28/00.39.52/
    new NewPostChecker("/playground/newpost/");



Inline script thread
Error:
name: TypeError
message: Statement on line 33: Expression evaluated to null or undefined and is not convertible to Object: xmlHttp
Backtrace:
  Line 33 of linked script http://erik.eae.net/playground/tunage/tunage.js
    xmlHttp.onreadystatechange = function () 
{
if (xmlHttp.readyState == 4)
{
self.onLoad();
}
}
;
  Line 10 of linked script http://erik.eae.net/playground/tunage/tunage.js
    this.reload();
  Line 28 of linked script http://erik.eae.net/playground/tunage/tunage-text.js
    t.setUri("http://erik.eae.net/playground/tunage/?action=currentlyplaying");
  Line 1 of inline#2 script in http://erik.eae.net/archives/2006/02/28/00.39.52/
    bindTunageToElement("tunage-text");


Shouldn't there be a way to avoid having these errors show in the javascript console?
I may be a bit offbeat...</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m not as advanced as you are but I am seeing this page with Opera and it throws these errors:</p>
<p>Inline script thread<br />
Error:<br />
name: TypeError<br />
message: Statement on line 128: Expression evaluated to null or undefined and is not convertible to Object: xmlHttp<br />
Backtrace:<br />
  Line 128 of linked script <a href="http://erik.eae.net/playground/newpost/newpost.js" rel="nofollow">http://erik.eae.net/playground/newpost/newpost.js</a><br />
    xmlHttp.onreadystatechange = function ()<br />
{<br />
if (xmlHttp.readyState == 4)<br />
{<br />
self.onLoad();<br />
}<br />
}<br />
;<br />
  Line 105 of linked script <a href="http://erik.eae.net/playground/newpost/newpost.js" rel="nofollow">http://erik.eae.net/playground/newpost/newpost.js</a><br />
    this.reload();<br />
  Line 98 of linked script <a href="http://erik.eae.net/playground/newpost/newpost.js" rel="nofollow">http://erik.eae.net/playground/newpost/newpost.js</a><br />
    this.setUri(sUri);<br />
  Line 2 of inline#1 script in <a href="http://erik.eae.net/archives/2006/02/28/00.39.52/" rel="nofollow">http://erik.eae.net/archives/2006/02/28/00.39.52/</a><br />
    new NewPostChecker(&#8221;/playground/newpost/&#8221;);</p>
<p>Inline script thread<br />
Error:<br />
name: TypeError<br />
message: Statement on line 33: Expression evaluated to null or undefined and is not convertible to Object: xmlHttp<br />
Backtrace:<br />
  Line 33 of linked script <a href="http://erik.eae.net/playground/tunage/tunage.js" rel="nofollow">http://erik.eae.net/playground/tunage/tunage.js</a><br />
    xmlHttp.onreadystatechange = function ()<br />
{<br />
if (xmlHttp.readyState == 4)<br />
{<br />
self.onLoad();<br />
}<br />
}<br />
;<br />
  Line 10 of linked script <a href="http://erik.eae.net/playground/tunage/tunage.js" rel="nofollow">http://erik.eae.net/playground/tunage/tunage.js</a><br />
    this.reload();<br />
  Line 28 of linked script <a href="http://erik.eae.net/playground/tunage/tunage-text.js" rel="nofollow">http://erik.eae.net/playground/tunage/tunage-text.js</a><br />
    t.setUri(&#8221;http://erik.eae.net/playground/tunage/?action=currentlyplaying&#8221;);<br />
  Line 1 of inline#2 script in <a href="http://erik.eae.net/archives/2006/02/28/00.39.52/" rel="nofollow">http://erik.eae.net/archives/2006/02/28/00.39.52/</a><br />
    bindTunageToElement(&#8221;tunage-text&#8221;);</p>
<p>Shouldn&#8217;t there be a way to avoid having these errors show in the javascript console?<br />
I may be a bit offbeat&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Arvidsson</title>
		<link>http://erik.eae.net/archives/2006/02/28/00.39.52/#comment-11196</link>
		<dc:creator>Erik Arvidsson</dc:creator>
		<pubDate>Tue, 21 Mar 2006 17:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://erik.eae.net/archives/2006/02/28/00.22.49/#comment-11196</guid>
		<description>Call is part of ECMAScript edition 3 and all dialects of JS supports that (or otherwise they are not even worth using).</description>
		<content:encoded><![CDATA[<p>Call is part of ECMAScript edition 3 and all dialects of JS supports that (or otherwise they are not even worth using).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NoXi</title>
		<link>http://erik.eae.net/archives/2006/02/28/00.39.52/#comment-11185</link>
		<dc:creator>NoXi</dc:creator>
		<pubDate>Tue, 21 Mar 2006 13:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://erik.eae.net/archives/2006/02/28/00.22.49/#comment-11185</guid>
		<description>apply( ) method is implemented in JavaScript 1.2, but the call( ) method is not implemented until JavaScript 1.5. according to the book "JavaScript: The Definitive Guide, 4th Edition"</description>
		<content:encoded><![CDATA[<p>apply( ) method is implemented in JavaScript 1.2, but the call( ) method is not implemented until JavaScript 1.5. according to the book &#8220;JavaScript: The Definitive Guide, 4th Edition&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snook.ca - a collection of tips, tricks and bookmarks in web development</title>
		<link>http://erik.eae.net/archives/2006/02/28/00.39.52/#comment-10753</link>
		<dc:creator>snook.ca - a collection of tips, tricks and bookmarks in web development</dc:creator>
		<pubDate>Sun, 19 Mar 2006 05:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://erik.eae.net/archives/2006/02/28/00.22.49/#comment-10753</guid>
		<description>&lt;strong&gt;An Interview with Dean Edwards...&lt;/strong&gt;

Dean Edwards was kind enough to answer a few questions on JavaScript. Tell me a bit of your background and how you got into JavaScript programming? I&#8217;ve been a programmer (professionally) for twenty years. Most of that time I&#8217;ve been......</description>
		<content:encoded><![CDATA[<p><strong>An Interview with Dean Edwards&#8230;</strong></p>
<p>Dean Edwards was kind enough to answer a few questions on JavaScript. Tell me a bit of your background and how you got into JavaScript programming? I&#8217;ve been a programmer (professionally) for twenty years. Most of that time I&#8217;ve been&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Arvidsson</title>
		<link>http://erik.eae.net/archives/2006/02/28/00.39.52/#comment-10413</link>
		<dc:creator>Erik Arvidsson</dc:creator>
		<pubDate>Fri, 17 Mar 2006 10:03:45 +0000</pubDate>
		<guid isPermaLink="false">http://erik.eae.net/archives/2006/02/28/00.22.49/#comment-10413</guid>
		<description>Vincenzo: True and true

I've now updated the script.</description>
		<content:encoded><![CDATA[<p>Vincenzo: True and true</p>
<p>I&#8217;ve now updated the script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincenzo Alcamo</title>
		<link>http://erik.eae.net/archives/2006/02/28/00.39.52/#comment-10206</link>
		<dc:creator>Vincenzo Alcamo</dc:creator>
		<pubDate>Thu, 16 Mar 2006 09:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://erik.eae.net/archives/2006/02/28/00.22.49/#comment-10206</guid>
		<description>The quote method has a bug: you have to replace \ with \\
return '"' + this.replace(/\\/g, "\\\\").replace(/\"/g, "\\\"") + '"';

The quirk code can be made more readable in this way:
function extend(constr, name) {
  return function (s) {
    var args = Array.prototype.slice.call(arguments, 1);
    return constr.prototype[name].apply(s, args);
  };
}
if (!constr[name]) { constr[name] = extend(constr, name); }</description>
		<content:encoded><![CDATA[<p>The quote method has a bug: you have to replace \ with \\<br />
return &#8216;&#8221;&#8216; + this.replace(/\\/g, &#8220;\\\\&#8221;).replace(/\&#8221;/g, &#8220;\\\&#8221;") + &#8216;&#8221;&#8216;;</p>
<p>The quirk code can be made more readable in this way:<br />
function extend(constr, name) {<br />
  return function (s) {<br />
    var args = Array.prototype.slice.call(arguments, 1);<br />
    return constr.prototype[name].apply(s, args);<br />
  };<br />
}<br />
if (!constr[name]) { constr[name] = extend(constr, name); }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nitro2k01</title>
		<link>http://erik.eae.net/archives/2006/02/28/00.39.52/#comment-9322</link>
		<dc:creator>nitro2k01</dc:creator>
		<pubDate>Fri, 03 Mar 2006 10:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://erik.eae.net/archives/2006/02/28/00.22.49/#comment-9322</guid>
		<description>Elegant solution! This is javascript the way I like it!</description>
		<content:encoded><![CDATA[<p>Elegant solution! This is javascript the way I like it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Arvidsson</title>
		<link>http://erik.eae.net/archives/2006/02/28/00.39.52/#comment-9285</link>
		<dc:creator>Erik Arvidsson</dc:creator>
		<pubDate>Thu, 02 Mar 2006 07:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://erik.eae.net/archives/2006/02/28/00.22.49/#comment-9285</guid>
		<description>I have now licensed the file using Apache Software License 2.0. This is compatible with GPL so you can use it in qooxdoo.

The ugly syntax is because constr and name changes during the loop and the extra function actually binds the values to the right values (if this was not done all the methods would do this:

function (s) {
  var args = Array.prototype.slice.call(arguments, 1);
  return Stringprototype["slice"].apply(s, args);
}

not what one wants ;-)</description>
		<content:encoded><![CDATA[<p>I have now licensed the file using Apache Software License 2.0. This is compatible with GPL so you can use it in qooxdoo.</p>
<p>The ugly syntax is because constr and name changes during the loop and the extra function actually binds the values to the right values (if this was not done all the methods would do this:</p>
<p>function (s) {<br />
  var args = Array.prototype.slice.call(arguments, 1);<br />
  return Stringprototype["slice"].apply(s, args);<br />
}</p>
<p>not what one wants <img src='http://erik.eae.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
