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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js

Issue 2585393003: DevTools: [Persistence] implement Persistence.subscribeForBindingEvents (Closed)
Patch Set: nit Created 4 years 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/sources/UISourceCodeFrame.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
index 7ee4c75ff3c619712a21ddc60e5d3a193e0d7012..73d4bc832169e32e39706ebc55989eddc349ecc7 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
@@ -61,10 +61,7 @@ Sources.UISourceCodeFrame = class extends SourceFrame.SourceFrame {
this._messageAndDecorationListeners = [];
this._installMessageAndDecorationListeners();
- Persistence.persistence.addEventListener(
- Persistence.Persistence.Events.BindingCreated, this._onBindingChanged, this);
- Persistence.persistence.addEventListener(
- Persistence.Persistence.Events.BindingRemoved, this._onBindingChanged, this);
+ Persistence.persistence.subscribeForBindingEvent(this._uiSourceCode, this._onBindingChanged, this);
this.textEditor.addEventListener(
SourceFrame.SourcesTextEditor.Events.EditorBlurred,

Powered by Google App Engine
This is Rietveld 408576698