<?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: .unbind()</title>
	<atom:link href="http://api.jquery.com/unbind/feed/" rel="self" type="application/rss+xml" />
	<link>http://api.jquery.com/unbind/</link>
	<description>jQuery API Reference</description>
	<lastBuildDate>Tue, 16 Mar 2010 05:59:20 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mauzer_tim</title>
		<link>http://api.jquery.com/unbind/comment-page-1/#comment-1664</link>
		<dc:creator>mauzer_tim</dc:creator>
		<pubDate>Sun, 14 Mar 2010 01:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=392#comment-1664</guid>
		<description>It seems that unbind(&#039;eventType&#039;, handler) unbinds all handlers for this event type and not only this handler. &lt;br&gt;&lt;br&gt;I have 2 objects each of them subscribe itself to document&#039;s &quot;mousedown&quot; event:&lt;br&gt;&lt;br&gt;    $(document).bind(&#039;mousedown&#039;, this.onMouseDown);&lt;br&gt;&lt;br&gt;However when one of the objects unsubscribes itself with this command:&lt;br&gt;    $(document).unbind(&#039;mousedown&#039;, this.onMouseDown);&lt;br&gt;another object stops receiving &#039;mousedown&#039; events (it&#039;s onMouseDown callback stops being called).&lt;br&gt;&lt;br&gt;I&#039;m using 1.4.2 version, 1.3.2 had the same behavior. Is it the correct behavior or it&#039;s a bug?</description>
		<content:encoded><![CDATA[<p>It seems that unbind(&#39;eventType&#39;, handler) unbinds all handlers for this event type and not only this handler. </p>
<p>I have 2 objects each of them subscribe itself to document&#39;s &#8220;mousedown&#8221; event:</p>
<p>    $(document).bind(&#39;mousedown&#39;, this.onMouseDown);</p>
<p>However when one of the objects unsubscribes itself with this command:<br />    $(document).unbind(&#39;mousedown&#39;, this.onMouseDown);<br />another object stops receiving &#39;mousedown&#39; events (it&#39;s onMouseDown callback stops being called).</p>
<p>I&#39;m using 1.4.2 version, 1.3.2 had the same behavior. Is it the correct behavior or it&#39;s a bug?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZQ</title>
		<link>http://api.jquery.com/unbind/comment-page-1/#comment-1172</link>
		<dc:creator>ZQ</dc:creator>
		<pubDate>Sun, 21 Feb 2010 06:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=392#comment-1172</guid>
		<description>unbind  multiple namespaced handlers   don&#039;t work:  &lt;br&gt;$(&quot;#div1&quot;).bind(&quot;click.myName&quot;, function(e) { alert(&quot;1&quot;); });&lt;br&gt;$(&quot;#div1&quot;).bind(&quot;click.yourName&quot;, function(e) { alert(&quot;3&quot;); });&lt;br&gt;$(&quot;#div1&quot;).unbind(&quot;click.myName.yourName&quot;);//still alert 1 and 3</description>
		<content:encoded><![CDATA[<p>unbind  multiple namespaced handlers   don&#39;t work:  <br />$(&#8220;#div1&#8243;).bind(&#8220;click.myName&#8221;, function(e) { alert(&#8220;1&#8243;); });<br />$(&#8220;#div1&#8243;).bind(&#8220;click.yourName&#8221;, function(e) { alert(&#8220;3&#8243;); });<br />$(&#8220;#div1&#8243;).unbind(&#8220;click.myName.yourName&#8221;);//still alert 1 and 3</p>
]]></content:encoded>
	</item>
</channel>
</rss>
