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 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…
Add table
Add a link
Reference in a new issue