Web Inspector: "Minus" (Delete) button disappears for hovered watch expression in...
authorapavlov@chromium.org <apavlov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Feb 2012 16:09:30 +0000 (16:09 +0000)
committerapavlov@chromium.org <apavlov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Feb 2012 16:09:30 +0000 (16:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=78714

Reviewed by Pavel Feldman.

* inspector/front-end/WatchExpressionsSidebarPane.js:
(WebInspector.WatchExpressionsSection.prototype._mouseOut):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107821 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/WatchExpressionsSidebarPane.js

index d0cc41f..881832e 100644 (file)
@@ -1,3 +1,13 @@
+2012-02-15  Alexander Pavlov  <apavlov@chromium.org>
+
+        Web Inspector: "Minus" (Delete) button disappears for hovered watch expression in Watches pane
+        https://bugs.webkit.org/show_bug.cgi?id=78714
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/WatchExpressionsSidebarPane.js:
+        (WebInspector.WatchExpressionsSection.prototype._mouseOut):
+
 2012-02-15  Patrick Gansterer  <paroga@webkit.org>
 
         [CMake] Move RunLoop to WebCore/platform
index e6d3db3..2887b1d 100644 (file)
@@ -270,8 +270,10 @@ WebInspector.WatchExpressionsSection.prototype = {
 
     _mouseOut: function()
     {
-        if (this._hoveredElement)
+        if (this._hoveredElement) {
             this._hoveredElement.removeStyleClass("hovered");
+            delete this._hoveredElement;
+        }
         delete this._lastMouseMovePageY;
     },