Changeset 116305 in webkit


Ignore:
Timestamp:
May 7, 2012 6:38:40 AM (12 years ago)
Author:
apavlov@chromium.org
Message:

Web Inspector: [TextPrompt] Event listeners and CSS style are not removed on detachment
https://bugs.webkit.org/show_bug.cgi?id=85789

Reviewed by Yury Semikhatsky.

  • inspector/front-end/TextPrompt.js:

(WebInspector.TextPrompt.prototype._attachInternal):
(WebInspector.TextPrompt.prototype.detach):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r116298 r116305  
     12012-05-07  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Web Inspector: [TextPrompt] Event listeners and CSS style are not removed on detachment
     4        https://bugs.webkit.org/show_bug.cgi?id=85789
     5
     6        Reviewed by Yury Semikhatsky.
     7
     8        * inspector/front-end/TextPrompt.js:
     9        (WebInspector.TextPrompt.prototype._attachInternal):
     10        (WebInspector.TextPrompt.prototype.detach):
     11
    1122012-05-07  Csaba Osztrogonác  <ossy@webkit.org>
    213
  • trunk/Source/WebCore/inspector/front-end/TextPrompt.js

    r114880 r116305  
    113113        this._element.addStyleClass("text-prompt");
    114114        this._element.addEventListener("keydown", this._boundOnKeyDown, false);
    115         this._element.addEventListener("selectstart", this._selectStart.bind(this), false);
     115        this._element.addEventListener("selectstart", this._boundSelectStart, false);
    116116
    117117        if (typeof this._suggestBoxClassName === "string")
     
    126126        this.proxyElement.parentElement.insertBefore(this._element, this.proxyElement);
    127127        this.proxyElement.parentElement.removeChild(this.proxyElement);
     128        this._element.removeStyleClass("text-prompt");
     129        this._element.removeEventListener("keydown", this._boundOnKeyDown, false);
     130        this._element.removeEventListener("selectstart", this._boundSelectStart, false);
    128131        delete this._proxyElement;
    129132        WebInspector.restoreFocusFromElement(this._element);
Note: See TracChangeset for help on using the changeset viewer.