remove useless constructors
This commit is contained in:
parent
14fb3c4598
commit
fd0f9519f1
2 changed files with 5 additions and 9 deletions
|
@ -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)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue