<?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: Detect an Empty Set in jQuery</title>
	<atom:link href="http://b-knox.com/181/detect-an-empty-set-in-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://b-knox.com/181/detect-an-empty-set-in-jquery/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 25 Jan 2012 12:31:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Andy</title>
		<link>http://b-knox.com/181/detect-an-empty-set-in-jquery/comment-page-1/#comment-2014</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Mon, 27 Dec 2010 04:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://b-knox.com/?p=181#comment-2014</guid>
		<description>I love personal websites like this one for finding solutions to specific, uncommon issues like this one. I appreciate your time.</description>
		<content:encoded><![CDATA[<p>I love personal websites like this one for finding solutions to specific, uncommon issues like this one. I appreciate your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dani</title>
		<link>http://b-knox.com/181/detect-an-empty-set-in-jquery/comment-page-1/#comment-1670</link>
		<dc:creator>Dani</dc:creator>
		<pubDate>Tue, 30 Nov 2010 03:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://b-knox.com/?p=181#comment-1670</guid>
		<description>&quot; I hope this is helpful to someone in a similar situation!  :D&quot;

It is!</description>
		<content:encoded><![CDATA[<p>&#8221; I hope this is helpful to someone in a similar situation!  :D&#8221;</p>
<p>It is!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: b-knox</title>
		<link>http://b-knox.com/181/detect-an-empty-set-in-jquery/comment-page-1/#comment-86</link>
		<dc:creator>b-knox</dc:creator>
		<pubDate>Fri, 30 Apr 2010 18:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://b-knox.com/?p=181#comment-86</guid>
		<description>geez... I also just found jQuery.isEmptyObject()!!  So...

if ($(&#039;.none&#039;).isEmptyObject()) { }

...should also work.  :/

.

...and another one - this time without using a function...

obj = $(&#039;.none&#039;);
if (!obj[0]) { }

this looks for a first item in the object, if none found run the code, again untested  :P

...</description>
		<content:encoded><![CDATA[<p>geez&#8230; I also just found jQuery.isEmptyObject()!!  So&#8230;</p>
<p>if ($(&#8216;.none&#8217;).isEmptyObject()) { }</p>
<p>&#8230;should also work.  :/</p>
<p>.</p>
<p>&#8230;and another one &#8211; this time without using a function&#8230;</p>
<p>obj = $(&#8216;.none&#8217;);<br />
if (!obj[0]) { }</p>
<p>this looks for a first item in the object, if none found run the code, again untested  :P</p>
<p>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: b-knox</title>
		<link>http://b-knox.com/181/detect-an-empty-set-in-jquery/comment-page-1/#comment-66</link>
		<dc:creator>b-knox</dc:creator>
		<pubDate>Sun, 25 Apr 2010 23:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://b-knox.com/?p=181#comment-66</guid>
		<description>Perhaps you meant 

if (!$(&#039;.none&#039;).length) { }

because .length returns the number of elements in a set and I only want the code in brackets to run if the set is empty.  What you proposed would do the opposite.  But if you hate the &#039;==&#039; so much you can optimize out a few characters with the ! operand.</description>
		<content:encoded><![CDATA[<p>Perhaps you meant </p>
<p>if (!$(&#8216;.none&#8217;).length) { }</p>
<p>because .length returns the number of elements in a set and I only want the code in brackets to run if the set is empty.  What you proposed would do the opposite.  But if you hate the &#8216;==&#8217; so much you can optimize out a few characters with the ! operand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Sexton</title>
		<link>http://b-knox.com/181/detect-an-empty-set-in-jquery/comment-page-1/#comment-65</link>
		<dc:creator>Alex Sexton</dc:creator>
		<pubDate>Sun, 25 Apr 2010 23:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://b-knox.com/?p=181#comment-65</guid>
		<description>In your check, you can leave out the `==`.

if ($(&#039;.none&#039;).length) {
   ...
}

would have the same outcome.</description>
		<content:encoded><![CDATA[<p>In your check, you can leave out the `==`.</p>
<p>if ($(&#8216;.none&#8217;).length) {<br />
   &#8230;<br />
}</p>
<p>would have the same outcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Detect an Empty Set in jQuery « Baron Knoxburry &#124; Source code bank</title>
		<link>http://b-knox.com/181/detect-an-empty-set-in-jquery/comment-page-1/#comment-64</link>
		<dc:creator>Detect an Empty Set in jQuery « Baron Knoxburry &#124; Source code bank</dc:creator>
		<pubDate>Sun, 25 Apr 2010 01:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://b-knox.com/?p=181#comment-64</guid>
		<description>[...] here to read the rest: Detect an Empty Set in jQuery « Baron Knoxburry       If you enjoyed this article please consider sharing [...]</description>
		<content:encoded><![CDATA[<p>[...] here to read the rest: Detect an Empty Set in jQuery « Baron Knoxburry       If you enjoyed this article please consider sharing [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

