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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js

Issue 2562453003: [DevTools] Remove Common.Event.target field. (Closed)
Patch Set: works 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.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/workspace/UISourceCode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
index 13276a2301ef48154993f4275031e6a11c8dfe51..5a4b67350debc272e9e6ff0a9935a348def3f45a 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
@@ -180,7 +180,7 @@ Workspace.UISourceCode = class extends Common.Object {
this._url = url;
if (contentType)
this._contentType = contentType;
- this.dispatchEventToListeners(Workspace.UISourceCode.Events.TitleChanged, oldURL);
+ this.dispatchEventToListeners(Workspace.UISourceCode.Events.TitleChanged, this);
}
/**
@@ -347,7 +347,8 @@ Workspace.UISourceCode = class extends Common.Object {
}
this._innerResetWorkingCopy();
- this.dispatchEventToListeners(Workspace.UISourceCode.Events.WorkingCopyCommitted, {content: content});
+ this.dispatchEventToListeners(
+ Workspace.UISourceCode.Events.WorkingCopyCommitted, {uiSourceCode: this, content: content});
this._project.workspace().dispatchEventToListeners(
Workspace.Workspace.Events.WorkingCopyCommitted, {uiSourceCode: this, content: content});
if (committedByUser) {
@@ -456,7 +457,7 @@ Workspace.UISourceCode = class extends Common.Object {
_workingCopyChanged() {
this._removeAllMessages();
- this.dispatchEventToListeners(Workspace.UISourceCode.Events.WorkingCopyChanged);
+ this.dispatchEventToListeners(Workspace.UISourceCode.Events.WorkingCopyChanged, this);
this._project.workspace().dispatchEventToListeners(
Workspace.Workspace.Events.WorkingCopyChanged, {uiSourceCode: this});
}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698