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

Unified Diff: Source/devtools/front_end/sdk/DOMModel.js

Issue 842323005: DevTools: Clean up the Event Listeners pane data representation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove listenerBody from the protocol Created 5 years, 11 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
Index: Source/devtools/front_end/sdk/DOMModel.js
diff --git a/Source/devtools/front_end/sdk/DOMModel.js b/Source/devtools/front_end/sdk/DOMModel.js
index 0a8a9542f7be8fa40efd1f4132d0fc463343a257..8e9f7c21b9d1a752f780bb4158a5c8d4287c3e5b 100644
--- a/Source/devtools/front_end/sdk/DOMModel.js
+++ b/Source/devtools/front_end/sdk/DOMModel.js
@@ -2093,11 +2093,8 @@ WebInspector.DOMModel.EventListener = function(target, payload)
{
WebInspector.SDKObject.call(this, target);
this._payload = payload;
- var sourceName = this._payload.sourceName;
- if (!sourceName) {
- var script = target.debuggerModel.scriptForId(payload.location.scriptId);
- sourceName = script ? script.contentURL() : "";
- }
+ var script = target.debuggerModel.scriptForId(payload.location.scriptId);
+ var sourceName = script ? script.contentURL() : "";
this._sourceName = sourceName;
}
« no previous file with comments | « Source/devtools/front_end/elements/EventListenersSidebarPane.js ('k') | Source/devtools/front_end/sdk/Script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698