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); |
} |