Bug 645964 - Part of the undo close group button doesn't response to click [r=ian]
authorRaymond Lee <raymond@raysquare.com>
Wed, 30 Mar 2011 09:36:33 +0800
changeset 67581 06126c876659
parent 67580 09f0f34dcd8a
child 67582 47cb90cc497c
push idunknown
push userunknown
push dateunknown
reviewersian
bugs645964
milestone2.2a1pre
Bug 645964 - Part of the undo close group button doesn't response to click [r=ian]
browser/base/content/tabview/groupitems.js
--- a/browser/base/content/tabview/groupitems.js
+++ b/browser/base/content/tabview/groupitems.js
@@ -911,18 +911,18 @@ GroupItem.prototype = Utils.extend(new I
         complete: function() {
           self._sendToSubscribers("groupHidden", { groupItemId: self.id });
         }
       });
     }, 50);
 
     // add click handlers
     this.$undoContainer.click(function(e) {
-      // Only do this for clicks on this actual element.
-      if (e.target.nodeName != self.$undoContainer[0].nodeName)
+      // don't do anything if the close button is clicked.
+      if (e.target == undoClose[0])
         return;
 
       self.$undoContainer.fadeOut(function() { self._unhide(); });
     });
 
     undoClose.click(function() {
       self.$undoContainer.fadeOut(function() { self.closeHidden(); });
     });