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

Unified Diff: third_party/WebKit/Source/devtools/front_end/persistence/Persistence.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
Index: third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
diff --git a/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js b/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
index 53c33e5739b287844980ca91132c3c2d08af8706..d22a345776ca9a6fa31024670452ecdc51bef5ad 100644
--- a/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
+++ b/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
@@ -130,7 +130,7 @@ Persistence.Persistence = class extends Common.Object {
* @param {!Common.Event} event
*/
_onWorkingCopyChanged(event) {
- var uiSourceCode = /** @type {!Workspace.UISourceCode} */ (event.target);
+ var uiSourceCode = /** @type {!Workspace.UISourceCode} */ (event.data);
var binding = uiSourceCode[Persistence.Persistence._binding];
if (!binding || binding[Persistence.Persistence._muteWorkingCopy])
return;
@@ -164,7 +164,7 @@ Persistence.Persistence = class extends Common.Object {
* @param {!Common.Event} event
*/
_onWorkingCopyCommitted(event) {
- var uiSourceCode = /** @type {!Workspace.UISourceCode} */ (event.target);
+ var uiSourceCode = /** @type {!Workspace.UISourceCode} */ (event.data.uiSourceCode);
var binding = uiSourceCode[Persistence.Persistence._binding];
if (!binding || binding[Persistence.Persistence._muteCommit])
return;

Powered by Google App Engine
This is Rietveld 408576698