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

Unified Diff: third_party/WebKit/Source/devtools/front_end/event_listeners/EventListenersView.js

Issue 2752403002: [DevTools] Migrate usages of Target to RuntimeModel where makes sense (Closed)
Patch Set: review comments addressed Created 3 years, 9 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: third_party/WebKit/Source/devtools/front_end/event_listeners/EventListenersView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/event_listeners/EventListenersView.js b/third_party/WebKit/Source/devtools/front_end/event_listeners/EventListenersView.js
index 25c4ede2e62b6f575171ae311255496297b72eb6..8742f0cfb66307d5cbdcfd5a87a4659a200ab9d6 100644
--- a/third_party/WebKit/Source/devtools/front_end/event_listeners/EventListenersView.js
+++ b/third_party/WebKit/Source/devtools/front_end/event_listeners/EventListenersView.js
@@ -267,7 +267,7 @@ EventListeners.ObjectEventListenerBar = class extends UI.TreeElement {
onpopulate() {
var properties = [];
var eventListener = this._eventListener;
- var runtimeModel = eventListener.target().runtimeModel;
+ var runtimeModel = eventListener.runtimeModel();
properties.push(runtimeModel.createRemotePropertyFromPrimitiveValue('useCapture', eventListener.useCapture()));
properties.push(runtimeModel.createRemotePropertyFromPrimitiveValue('passive', eventListener.passive()));
properties.push(runtimeModel.createRemotePropertyFromPrimitiveValue('once', eventListener.once()));

Powered by Google App Engine
This is Rietveld 408576698