Commit f7f5442c authored by yurys@chromium.org's avatar yurys@chromium.org

2011-03-15 Yury Semikhatsky <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: expanding/collapsing object shouldn&apos;t affect outer console.group expansion state
        https://bugs.webkit.org/show_bug.cgi?id=56373

        * inspector/front-end/Section.js:
        (WebInspector.Section):
        (WebInspector.Section.prototype.toggleExpanded):
        (WebInspector.Section.prototype.handleClick): stop click even propagation if it was handled by this section.

git-svn-id: svn://svn.chromium.org/blink/trunk@81133 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 656c5bd8
2011-03-15 Yury Semikhatsky <yurys@chromium.org>
Reviewed by Pavel Feldman.
Web Inspector: expanding/collapsing object shouldn&apos;t affect outer console.group expansion state
https://bugs.webkit.org/show_bug.cgi?id=56373
* inspector/front-end/Section.js:
(WebInspector.Section):
(WebInspector.Section.prototype.toggleExpanded):
(WebInspector.Section.prototype.handleClick): stop click even propagation if it was handled by this section.
2011-03-15 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Yury Semikhatsky.
......
......@@ -45,7 +45,7 @@ WebInspector.Section = function(title, subtitle)
this.headerElement.appendChild(this.subtitleElement);
this.headerElement.appendChild(this.titleElement);
this.headerElement.addEventListener("click", this.toggleExpanded.bind(this), false);
this.headerElement.addEventListener("click", this.handleClick.bind(this), false);
this.element.appendChild(this.headerElement);
this.title = title;
......@@ -168,5 +168,11 @@ WebInspector.Section.prototype = {
toggleExpanded: function()
{
this.expanded = !this.expanded;
},
handleClick: function(e)
{
this.toggleExpanded();
e.stopPropagation();
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment