Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleModel.js

Issue 2298473003: DevTools: do not leak memory through event listeners (Closed)
Patch Set: cleanup - some clients have being cleaning event listeners Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/common/Object.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleModel.js b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleModel.js
index 28481096aa90990f27ba8bd4306a5b3dd2002fd2..e702b30fa0099e42351e5b94d3fb1afe3f6cc922 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleModel.js
@@ -52,10 +52,8 @@ WebInspector.ComputedStyleModel.prototype = {
{
if (this._target === target)
return;
- if (this._targetEvents) {
+ if (this._targetEvents)
WebInspector.EventTarget.removeEventListeners(this._targetEvents);
- this._targetEvents = null;
- }
this._target = target;
var domModel = null;
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/common/Object.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698