<?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: jQuery Idioms For Element Generation</title>
	<atom:link href="http://fnd.lewcid.org/blog/archive/109/feed" rel="self" type="application/rss+xml" />
	<link>http://fnd.lewcid.org/blog/archive/109</link>
	<description>Just Another Personal Wobsite</description>
	<lastBuildDate>Wed, 07 Oct 2009 10:30:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: FND</title>
		<link>http://fnd.lewcid.org/blog/archive/109/comment-page-1#comment-9884</link>
		<dc:creator>FND</dc:creator>
		<pubDate>Wed, 07 Oct 2009 10:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://fnd.lewcid.org/blog/?p=109#comment-9884</guid>
		<description>Thanks proppy!
This looks certainly interesting. I prefer this to using .children(&quot;:last&quot;), as that seems somewhat hacky and potentially brittle.
However, I&#039;m not so sure about using .parent() instead of .end() - though perhaps that&#039;s just because I&#039;d have to adjust existing code if I were to change this now...

By the way, Mike suggested using &quot;attach&quot; instead of &quot;create&quot; for the method&#039;s name, which I&#039;ve now adopted.</description>
		<content:encoded><![CDATA[<p>Thanks proppy!<br />
This looks certainly interesting. I prefer this to using .children(&#8220;:last&#8221;), as that seems somewhat hacky and potentially brittle.<br />
However, I&#8217;m not so sure about using .parent() instead of .end() &#8211; though perhaps that&#8217;s just because I&#8217;d have to adjust existing code if I were to change this now&#8230;</p>
<p>By the way, Mike suggested using &#8220;attach&#8221; instead of &#8220;create&#8221; for the method&#8217;s name, which I&#8217;ve now adopted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: proppy</title>
		<link>http://fnd.lewcid.org/blog/archive/109/comment-page-1#comment-9883</link>
		<dc:creator>proppy</dc:creator>
		<pubDate>Wed, 07 Oct 2009 10:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://fnd.lewcid.org/blog/?p=109#comment-9883</guid>
		<description>After discussing it with you on irc://irc.freenode.net/#tiddlywiki, I believe the following might also work:

$.fn.create = function(html) {
	return $(html).appendTo(this);
};

$(&quot;&lt;div&gt;&quot;).create(&quot;&lt;h2&gt;&quot;).addClass(className).text(heading).parent().create(&quot;&lt;p&gt;&quot;).text(body).parent().appendTo(container);</description>
		<content:encoded><![CDATA[<p>After discussing it with you on <a href="irc://irc.freenode.net/#tiddlywiki" rel="nofollow">irc://irc.freenode.net/#tiddlywiki</a>, I believe the following might also work:</p>
<p>$.fn.create = function(html) {<br />
	return $(html).appendTo(this);<br />
};</p>
<p>$(&#8220;&lt;div&gt;&#8221;).create(&#8220;&lt;h2&gt;&#8221;).addClass(className).text(heading).parent().create(&#8220;&lt;p&gt;&#8221;).text(body).parent().appendTo(container);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FND</title>
		<link>http://fnd.lewcid.org/blog/archive/109/comment-page-1#comment-8827</link>
		<dc:creator>FND</dc:creator>
		<pubDate>Mon, 17 Aug 2009 13:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://fnd.lewcid.org/blog/?p=109#comment-8827</guid>
		<description>Thanks Mike.
I agree that &quot;create&quot; is not an ideal appellation for this method (too generic, doesn&#039;t imply change of focus).
While &quot;push&quot; first confused me (was thinking of Git rather than arrays), it actually kinda makes sense when seen in that context.</description>
		<content:encoded><![CDATA[<p>Thanks Mike.<br />
I agree that &#8220;create&#8221; is not an ideal appellation for this method (too generic, doesn&#8217;t imply change of focus).<br />
While &#8220;push&#8221; first confused me (was thinking of Git rather than arrays), it actually kinda makes sense when seen in that context.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Mahemoff</title>
		<link>http://fnd.lewcid.org/blog/archive/109/comment-page-1#comment-8826</link>
		<dc:creator>Michael Mahemoff</dc:creator>
		<pubDate>Mon, 17 Aug 2009 13:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://fnd.lewcid.org/blog/?p=109#comment-8826</guid>
		<description>All this has been very useful to me.

BTW I&#039;m using &quot;push&quot; instead of &quot;create&quot; as I feel it conveys the intent more clearly. (Although &quot;push&quot; doesn&#039;t encapsulate creation, it&#039;s obvious from the context - $(&quot;&quot;).push(&quot;&quot;).</description>
		<content:encoded><![CDATA[<p>All this has been very useful to me.</p>
<p>BTW I&#8217;m using &#8220;push&#8221; instead of &#8220;create&#8221; as I feel it conveys the intent more clearly. (Although &#8220;push&#8221; doesn&#8217;t encapsulate creation, it&#8217;s obvious from the context &#8211; $(&#8220;&#8221;).push(&#8220;&#8221;).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
