<?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.isFunction()</title>
	<atom:link href="http://api.jquery.com/jQuery.isFunction/feed/" rel="self" type="application/rss+xml" />
	<link>http://api.jquery.com/jQuery.isFunction/</link>
	<description>jQuery API Reference</description>
	<lastBuildDate>Fri, 19 Aug 2011 09:06:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kyle Florence</title>
		<link>http://api.jquery.com/jQuery.isFunction/comment-page-1/#comment-8303</link>
		<dc:creator>Kyle Florence</dc:creator>
		<pubDate>Thu, 13 Jan 2011 01:56:02 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=222#comment-8303</guid>
		<description>In certain situations in some browsers, things are incorrectly returned as the &quot;function&quot; type, or things that are in fact functions are returned as another type.  There are several test cases you can see here: &lt;a href=&quot;https://github.com/jquery/jquery/blob/master/test/unit/core.js&quot; rel=&quot;nofollow&quot;&gt;https://github.com/jquery/jque...&lt;/a&gt;&lt;br&gt;&lt;br&gt;One example: &lt;br&gt;&lt;br&gt;var obj = document.createElement(&quot;object&quot;);&lt;br&gt;&lt;br&gt;// Firefox says this is a function&lt;br&gt;typeof obj; // =&gt; &quot;function&quot;&lt;br&gt;&lt;br&gt;Keep in mind these are mostly edge cases, but the reason $.isFunction was made was simply to be positive about something being a function (which can be quite important for the jQuery library itself, maybe not so much for your code).</description>
		<content:encoded><![CDATA[<p>In certain situations in some browsers, things are incorrectly returned as the &#8220;function&#8221; type, or things that are in fact functions are returned as another type.  There are several test cases you can see here: <a href="https://github.com/jquery/jquery/blob/master/test/unit/core.js" rel="nofollow">https://github.com/jquery/jque&#8230;</a></p>
<p>One example: </p>
<p>var obj = document.createElement(&#8220;object&#8221;);</p>
<p>// Firefox says this is a function<br />typeof obj; // =&gt; &#8220;function&#8221;</p>
<p>Keep in mind these are mostly edge cases, but the reason $.isFunction was made was simply to be positive about something being a function (which can be quite important for the jQuery library itself, maybe not so much for your code).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal Čizmazia</title>
		<link>http://api.jquery.com/jQuery.isFunction/comment-page-1/#comment-8065</link>
		<dc:creator>Michal Čizmazia</dc:creator>
		<pubDate>Wed, 22 Sep 2010 13:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=222#comment-8065</guid>
		<description>Could you provide a brief explanation of the difference between $.isFunction(f) and typeof f === &quot;function&quot;?&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>Could you provide a brief explanation of the difference between $.isFunction(f) and typeof f === &#8220;function&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal Čizmazia</title>
		<link>http://api.jquery.com/jQuery.isFunction/comment-page-1/#comment-5900</link>
		<dc:creator>Michal Čizmazia</dc:creator>
		<pubDate>Wed, 22 Sep 2010 05:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=222#comment-5900</guid>
		<description>Could you provide a brief explanation of the difference between $.isFunction(f) and typeof f === &quot;function&quot;?&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>Could you provide a brief explanation of the difference between $.isFunction(f) and typeof f === &#8220;function&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bx166er</title>
		<link>http://api.jquery.com/jQuery.isFunction/comment-page-1/#comment-4417</link>
		<dc:creator>bx166er</dc:creator>
		<pubDate>Fri, 21 May 2010 12:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=222#comment-4417</guid>
		<description>Here&#039;s another example... &lt;br&gt;If I have a function like this:&lt;br&gt;&lt;code&gt;&lt;br&gt;jQuery.loadImages = function() {   ... function here ...  };&lt;br&gt;&lt;/code&gt;&lt;br&gt;&lt;br&gt;Then to test whether the jquery function exists, i would use:&lt;br&gt;&lt;code&gt;&lt;br&gt;if(jQuery.isFunction(jQuery.loadImages)) {alert(&#039;yes&#039;);} else alert(&#039;no&#039;);&lt;br&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Here&#39;s another example&#8230; <br />If I have a function like this:<br /><code><br />jQuery.loadImages = function() {   ... function here ...  };<br /></code></p>
<p>Then to test whether the jquery function exists, i would use:<br /><code><br />if(jQuery.isFunction(jQuery.loadImages)) {alert(&#39;yes&#39;);} else alert(&#39;no&#39;);<br /></code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

