diff --git a/lib/renderer/web-view/guest-view-internal.js b/lib/renderer/web-view/guest-view-internal.js index 48ddf5ea10b..6c5a499ca9d 100644 --- a/lib/renderer/web-view/guest-view-internal.js +++ b/lib/renderer/web-view/guest-view-internal.js @@ -1,3 +1,5 @@ +/* globals Event */ + 'use strict' const ipcRenderer = require('electron').ipcRenderer @@ -102,5 +104,5 @@ module.exports = { }, setSize: function (guestInstanceId, params) { return ipcRenderer.send('ATOM_SHELL_GUEST_VIEW_MANAGER_SET_SIZE', guestInstanceId, params) - }, + } } diff --git a/lib/renderer/web-view/web-view-attributes.js b/lib/renderer/web-view/web-view-attributes.js index 712973cea85..922aaa8c017 100644 --- a/lib/renderer/web-view/web-view-attributes.js +++ b/lib/renderer/web-view/web-view-attributes.js @@ -1,3 +1,5 @@ +/* globals MutationObserver */ + 'use strict' const WebViewImpl = require('./web-view') @@ -60,10 +62,6 @@ class WebViewAttribute { // An attribute that is treated as a Boolean. class BooleanAttribute extends WebViewAttribute { - constructor (name, webViewImpl) { - super(name, webViewImpl) - } - getValue () { return this.webViewImpl.webviewNode.hasAttribute(this.name) } @@ -79,10 +77,6 @@ class BooleanAttribute extends WebViewAttribute { // Attribute used to define the demension limits of autosizing. class AutosizeDimensionAttribute extends WebViewAttribute { - constructor (name, webViewImpl) { - super(name, webViewImpl) - } - getValue () { return parseInt(this.webViewImpl.webviewNode.getAttribute(this.name)) || 0 }