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

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

Issue 2560553004: Revert of [DevTools] Remove methods on Common.Event. (Closed)
Patch Set: 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/SourcesNavigator.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
index e5ea130c36c16421dc4f651b117e41fb11e75334..a2bbc353f778141ff6c6a02f29fc358a7d904dc6 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
@@ -146,8 +146,7 @@
var toolbar = new UI.Toolbar('navigator-toolbar');
var title = Common.UIString('Add folder to workspace');
var addButton = new UI.ToolbarButton(title, 'largeicon-add', title);
- addButton.addEventListener(
- UI.ToolbarButton.Events.Click, () => Workspace.isolatedFileSystemManager.addFileSystem());
+ addButton.addEventListener('click', () => Workspace.isolatedFileSystemManager.addFileSystem());
toolbar.appendToolbarItem(addButton);
this.element.insertBefore(toolbar.element, this.element.firstChild);
}
@@ -198,7 +197,7 @@
super();
var toolbar = new UI.Toolbar('navigator-toolbar');
var newButton = new UI.ToolbarButton('', 'largeicon-add', Common.UIString('New Snippet'));
- newButton.addEventListener(UI.ToolbarButton.Events.Click, this._handleCreateSnippet.bind(this));
+ newButton.addEventListener('click', this._handleCreateSnippet.bind(this));
toolbar.appendToolbarItem(newButton);
this.element.insertBefore(toolbar.element, this.element.firstChild);
}

Powered by Google App Engine
This is Rietveld 408576698