eradicate all per-file eslint globals
This commit is contained in:
parent
aadc0bee25
commit
7c58f7fb02
15 changed files with 17 additions and 33 deletions
|
@ -1,11 +1,10 @@
|
|||
/* globals InspectorFrontendHost, WebInspector, DevToolsAPI, DevToolsAPI, Blob */
|
||||
|
||||
window.onload = function () {
|
||||
|
||||
// Use menu API to show context menu.
|
||||
InspectorFrontendHost.showContextMenuAtPoint = createMenu
|
||||
window.InspectorFrontendHost.showContextMenuAtPoint = createMenu
|
||||
|
||||
// Use dialog API to override file chooser dialog.
|
||||
return (WebInspector.createFileSelectorElement = createFileSelectorElement)
|
||||
return (window.WebInspector.createFileSelectorElement = createFileSelectorElement)
|
||||
}
|
||||
|
||||
var convertToMenuTemplate = function (items) {
|
||||
|
@ -32,8 +31,8 @@ var convertToMenuTemplate = function (items) {
|
|||
}
|
||||
if (item.id != null) {
|
||||
transformed.click = function () {
|
||||
DevToolsAPI.contextMenuItemSelected(item.id)
|
||||
return DevToolsAPI.contextMenuCleared()
|
||||
window.DevToolsAPI.contextMenuItemSelected(item.id)
|
||||
return window.DevToolsAPI.contextMenuCleared()
|
||||
}
|
||||
}
|
||||
return template.push(transformed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue