<?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: Extending jQuery UI Widgets Revisited</title>
	<atom:link href="http://bililite.nfshost.com/blog/2008/08/13/extending-jquery-ui-widgets-revisited/feed/" rel="self" type="application/rss+xml" />
	<link>http://bililite.nfshost.com/blog/2008/08/13/extending-jquery-ui-widgets-revisited/</link>
	<description>Thoughts on web design and programming from a very occasional volunteer webmaster</description>
	<lastBuildDate>Thu, 10 May 2012 10:36:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2008/08/13/extending-jquery-ui-widgets-revisited/comment-page-1/#comment-345</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Fri, 22 Aug 2008 22:18:20 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=81#comment-345</guid>
		<description>@peschler:
You&#039;re absolutely correct (I&#039;ve updated it). slice starts at 0!
I will admit, though, that in my own code I removed callSuper in favor of using apply directly:
$.yi.superbox.prototype.move.apply(this, arguments)
I think it&#039;s just as clear as this.callSuper(&#039;yi.superbox&#039;, &#039;move&#039;)
and communicates better what is going on. It&#039;s more verbose, and I may change my mind.

I wrote a recent &lt;a href=&quot;/wordpress/2008/08/22/extending-jquery-ui-widgets-the-final-chapter/&quot; rel=&quot;nofollow&quot;&gt;post&lt;/a&gt;
on my most recent code. 

Thanks for the feedback!</description>
		<content:encoded><![CDATA[<p>@peschler:<br />
You&#8217;re absolutely correct (I&#8217;ve updated it). slice starts at 0!<br />
I will admit, though, that in my own code I removed callSuper in favor of using apply directly:<br />
$.yi.superbox.prototype.move.apply(this, arguments)<br />
I think it&#8217;s just as clear as this.callSuper(&#8216;yi.superbox&#8217;, &#8216;move&#8217;)<br />
and communicates better what is going on. It&#8217;s more verbose, and I may change my mind.</p>
<p>I wrote a recent <a href="/wordpress/2008/08/22/extending-jquery-ui-widgets-the-final-chapter/" rel="nofollow">post</a><br />
on my most recent code. </p>
<p>Thanks for the feedback!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peschler</title>
		<link>http://bililite.nfshost.com/blog/2008/08/13/extending-jquery-ui-widgets-revisited/comment-page-1/#comment-343</link>
		<dc:creator>peschler</dc:creator>
		<pubDate>Fri, 22 Aug 2008 21:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=81#comment-343</guid>
		<description>Hi,

great post. I&#039;m currently using your code to create a wizard which derives from the ui.tabs widget and everything works like a charm! Thanks for saving me a lot of time.

While using the callSuper() is spotted at bug - at least it did not work to call a superclass function with arguments until I corrected the following code:
[code]
var CallSuper = {
    callSuper: function(superclass, method){
        // return superclass.prototype[method].apply(this, Array.prototype.slice.call(arguments, 3));
        return superclass.prototype[method].apply(this, Array.prototype.slice.call(arguments, 2));
    }
};
[/code]

That is: the slice should start at 2, otherwise the first argument will be sliced away.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>great post. I&#8217;m currently using your code to create a wizard which derives from the ui.tabs widget and everything works like a charm! Thanks for saving me a lot of time.</p>
<p>While using the callSuper() is spotted at bug &#8211; at least it did not work to call a superclass function with arguments until I corrected the following code:<br />
[code]<br />
var CallSuper = {<br />
    callSuper: function(superclass, method){<br />
        // return superclass.prototype[method].apply(this, Array.prototype.slice.call(arguments, 3));<br />
        return superclass.prototype[method].apply(this, Array.prototype.slice.call(arguments, 2));<br />
    }<br />
};<br />
[/code]</p>
<p>That is: the slice should start at 2, otherwise the first argument will be sliced away.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

