Fix an exception that occurred when double clicking the closing tag
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jul 2008 02:48:17 +0000 (02:48 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jul 2008 02:48:17 +0000 (02:48 +0000)
        of an element in the DOM tree.

        Reviewed by Anders Carlsson.

        * page/inspector/ElementsPanel.js:
        (WebInspector.ElementsPanel.prototype._ondblclick): Null check
        element.ondblclick.

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

WebCore/ChangeLog
WebCore/page/inspector/ElementsPanel.js

index cd772b9..e54a25d 100644 (file)
@@ -1,5 +1,16 @@
 2008-07-22  Timothy Hatcher  <timothy@apple.com>
 
+        Fix an exception that occurred when double clicking the closing tag
+        of an element in the DOM tree.
+
+        Reviewed by Anders Carlsson.
+
+        * page/inspector/ElementsPanel.js:
+        (WebInspector.ElementsPanel.prototype._ondblclick): Null check
+        element.ondblclick.
+
+2008-07-22  Timothy Hatcher  <timothy@apple.com>
+
         Fix a regression where elements in subframes would not be revealed
         or selected when inspected from the context menu. This was caused by
         JavaScript equality is not being true for JSInspectedObjectWrappers
index 270032e..f97322c 100644 (file)
@@ -924,7 +924,7 @@ WebInspector.ElementsPanel.prototype = {
     {
         var element = this._treeElementFromEvent(event);
 
-        if (!element)
+        if (!element || !element.ondblclick)
             return;
 
         element.ondblclick();