<?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.Class 1.6.0: Forwardable, State, and Ruby</title>
	<atom:link href="http://blog.jcoglan.com/2008/04/10/jsclass-160-forwardable-state-and-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jcoglan.com/2008/04/10/jsclass-160-forwardable-state-and-ruby/</link>
	<description>This dirt was a building before</description>
	<pubDate>Tue, 06 Jan 2009 06:39:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Jan Zimmek</title>
		<link>http://blog.jcoglan.com/2008/04/10/jsclass-160-forwardable-state-and-ruby/#comment-3187</link>
		<dc:creator>Jan Zimmek</dc:creator>
		<pubDate>Wed, 28 May 2008 22:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jcoglan.com/?p=101#comment-3187</guid>
		<description>hi james,

i have found your jsclass library and like it - i really like it and want to use it in a firefox-extension i am currently developing. but i get a strange error when loading the "class.js" saying:

Error: func.callsSuper is not a function
Source File: chrome://soba/content/class/jsclass/class.js
Line: 132

here is the relevant code:

...
131:    if (!Function.is(func)) return (object[name] = func);

132:   if (!func.callsSuper()) return (object[name] = func);

...

i do not know what is happening, because it only failes when running in chrome-mode as mozilla extension.

just for testing purpose i have changed:

132:   if (!func.callsSuper()) return (object[name] = func);


to

132:   if (!func.callsSuper) return (object[name] = func);


and it seams to be working without errors, but i have not digged deep enough into jsclass-code to know what are the overall consequences when doing this change.


do you have any idea why this is happening in chrome mode  ?


here is my setup:

jsclass 1.6.0
firefox 2.0.0.14


PS:
your library is really good, but do you plan to add some kind of mailinglist or supportforum ?

thanks in advance
jan</description>
		<content:encoded><![CDATA[<p>hi james,</p>
<p>i have found your jsclass library and like it - i really like it and want to use it in a firefox-extension i am currently developing. but i get a strange error when loading the &#8220;class.js&#8221; saying:</p>
<p>Error: func.callsSuper is not a function<br />
Source File: chrome://soba/content/class/jsclass/class.js<br />
Line: 132</p>
<p>here is the relevant code:</p>
<p>&#8230;<br />
131:    if (!Function.is(func)) return (object[name] = func);</p>
<p>132:   if (!func.callsSuper()) return (object[name] = func);</p>
<p>&#8230;</p>
<p>i do not know what is happening, because it only failes when running in chrome-mode as mozilla extension.</p>
<p>just for testing purpose i have changed:</p>
<p>132:   if (!func.callsSuper()) return (object[name] = func);</p>
<p>to</p>
<p>132:   if (!func.callsSuper) return (object[name] = func);</p>
<p>and it seams to be working without errors, but i have not digged deep enough into jsclass-code to know what are the overall consequences when doing this change.</p>
<p>do you have any idea why this is happening in chrome mode  ?</p>
<p>here is my setup:</p>
<p>jsclass 1.6.0<br />
firefox 2.0.0.14</p>
<p>PS:<br />
your library is really good, but do you plan to add some kind of mailinglist or supportforum ?</p>
<p>thanks in advance<br />
jan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
