<?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: A Plugin Development Pattern</title>
	<atom:link href="http://www.learningjquery.com/2007/10/a-plugin-development-pattern/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:50:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jquery Samples from net &#171; Designing</title>
		<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern/comment-page-2#comment-86487</link>
		<dc:creator>Jquery Samples from net &#171; Designing</dc:creator>
		<pubDate>Wed, 01 Feb 2012 10:02:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/10/a-plugin-development-pattern#comment-86487</guid>
		<description>[...] A Plugin Development Pattern- This article is meant to share a useful pattern for plugin authoring. [...]</description>
		<content:encoded><![CDATA[<p>[...] A Plugin Development Pattern- This article is meant to share a useful pattern for plugin authoring. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bird</title>
		<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern/comment-page-2#comment-86107</link>
		<dc:creator>bird</dc:creator>
		<pubDate>Thu, 05 Jan 2012 04:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/10/a-plugin-development-pattern#comment-86107</guid>
		<description>Great article! Thanks for posting it. And thank you for all the work you&#039;ve contributed to the jQuery community.</description>
		<content:encoded><![CDATA[<p>Great article! Thanks for posting it. And thank you for all the work you&#8217;ve contributed to the jQuery community.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Burnett</title>
		<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern/comment-page-2#comment-84692</link>
		<dc:creator>Jason Burnett</dc:creator>
		<pubDate>Sun, 20 Nov 2011 17:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/10/a-plugin-development-pattern#comment-84692</guid>
		<description>I was wondering why you use the implied global variable $this during your iterations.

Shouldn&#039;t the declaration of $this=$(this) be a variable declaration to keep it local to the each iteration...in other words, wouldn&#039;t it be better to say:  var $this=$(this);  ?

I&#039;m sure I am missing something, but any advice would be greatly appreciated. Thanks for the great pattern/tutorial. I&#039;m excited to write my first plugin.</description>
		<content:encoded><![CDATA[<p>I was wondering why you use the implied global variable $this during your iterations.</p>
<p>Shouldn&#8217;t the declaration of $this=$(this) be a variable declaration to keep it local to the each iteration&#8230;in other words, wouldn&#8217;t it be better to say:  var $this=$(this);  ?</p>
<p>I&#8217;m sure I am missing something, but any advice would be greatly appreciated. Thanks for the great pattern/tutorial. I&#8217;m excited to write my first plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern/comment-page-2#comment-84672</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 11 Nov 2011 23:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/10/a-plugin-development-pattern#comment-84672</guid>
		<description>I&#039;m sorry if I missed something in the comments that might already address this concern, but is there a reason why you&#039;re adding $this to the global namespace?
Shouldn&#039;t &lt;code&gt;$this = $(this);&lt;/code&gt;
be &lt;code&gt;var $this = $(this);&lt;/code&gt;?</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry if I missed something in the comments that might already address this concern, but is there a reason why you&#8217;re adding $this to the global namespace?<br />
Shouldn&#8217;t <code>$this = $(this);</code><br />
be <code>var $this = $(this);</code>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A Few JavaScript/jQuery Best Practices &#171; Cory Peters</title>
		<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern/comment-page-2#comment-84484</link>
		<dc:creator>A Few JavaScript/jQuery Best Practices &#171; Cory Peters</dc:creator>
		<pubDate>Thu, 29 Sep 2011 14:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/10/a-plugin-development-pattern#comment-84484</guid>
		<description>[...] and properly encapsulated within a JavaScript closure.  There are plenty of guides out there on how to build a jQuery plugin so I&#8217;m not going to repeat that [...]</description>
		<content:encoded><![CDATA[<p>[...] and properly encapsulated within a JavaScript closure.  There are plenty of guides out there on how to build a jQuery plugin so I&#8217;m not going to repeat that [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern/comment-page-2#comment-84386</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Thu, 08 Sep 2011 02:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/10/a-plugin-development-pattern#comment-84386</guid>
		<description>That&#039;s because debug2 is a function expression, and you didn&#039;t declare the variable (using &lt;code&gt;var&lt;/code&gt;), which makes it available globally.</description>
		<content:encoded><![CDATA[<p>That&#8217;s because debug2 is a function expression, and you didn&#8217;t declare the variable (using <code>var</code>), which makes it available globally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern/comment-page-2#comment-84350</link>
		<dc:creator>david</dc:creator>
		<pubDate>Sat, 27 Aug 2011 01:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/10/a-plugin-development-pattern#comment-84350</guid>
		<description>Hmmm, ok, strange:
&lt;pre&gt;
(function($){
        function debug() {
                alert(&quot;debug ok&quot;);
        }
        debug2 = function() {
                alert(&quot;debug2 ok&quot;);
        }
[...]
&lt;/pre&gt;Debug function is private
Debug2 isn&#039;t private.</description>
		<content:encoded><![CDATA[<p>Hmmm, ok, strange:</p>
<pre>
(function($){
        function debug() {
                alert("debug ok");
        }
        debug2 = function() {
                alert("debug2 ok");
        }
[...]
</pre>
<p>Debug function is private<br />
Debug2 isn&#8217;t private.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern/comment-page-2#comment-84349</link>
		<dc:creator>david</dc:creator>
		<pubDate>Sat, 27 Aug 2011 00:58:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/10/a-plugin-development-pattern#comment-84349</guid>
		<description>&gt; Our &quot;debug&quot; method cannot be accessed from outside of the closure
&gt;  and thus is private to our implementation.

No it&#039;s private implementation; Debug function is available all over your code</description>
		<content:encoded><![CDATA[<p>&gt; Our &#8220;debug&#8221; method cannot be accessed from outside of the closure<br />
&gt;  and thus is private to our implementation.</p>
<p>No it&#8217;s private implementation; Debug function is available all over your code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 50kj</title>
		<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern/comment-page-2#comment-84329</link>
		<dc:creator>50kj</dc:creator>
		<pubDate>Wed, 17 Aug 2011 09:44:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/10/a-plugin-development-pattern#comment-84329</guid>
		<description>$(&quot;select&quot;,obj).bind(&quot;click.mydownlist&quot;, {sel_index:$(this).attr(&quot;sel_index&quot;)},defaults.onclick);
I have bind data in jquery plugin , but how to get it in client&#039;s callback function?</description>
		<content:encoded><![CDATA[<p>$(&#8220;select&#8221;,obj).bind(&#8220;click.mydownlist&#8221;, {sel_index:$(this).attr(&#8220;sel_index&#8221;)},defaults.onclick);<br />
I have bind data in jquery plugin , but how to get it in client&#8217;s callback function?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Advanced jQuery Plugin Pattern 2.0 - blog.topwebdevelop.com</title>
		<link>http://www.learningjquery.com/2007/10/a-plugin-development-pattern/comment-page-2#comment-84046</link>
		<dc:creator>Advanced jQuery Plugin Pattern 2.0 - blog.topwebdevelop.com</dc:creator>
		<pubDate>Thu, 28 Jul 2011 02:46:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/10/a-plugin-development-pattern#comment-84046</guid>
		<description>[...] great read is Mike Alsup&#8217;s plugin development pattern. His tutorial is closer to what my pattern [...]</description>
		<content:encoded><![CDATA[<p>[...] great read is Mike Alsup&#8217;s plugin development pattern. His tutorial is closer to what my pattern [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 7/19 queries in 0.009 seconds using disk: basic
Object Caching 371/374 objects using disk: basic
Content Delivery Network via learningjquery.kswedberg.netdna-cdn.com

Served from: www.learningjquery.com @ 2012-02-08 17:16:58 -->
