lint: white spaces & var decl
This commit is contained in:
parent
8093945a64
commit
f8a5eda6aa
6 changed files with 10 additions and 14 deletions
|
|
@ -171,7 +171,7 @@ class Widget extends EventEmitter {
|
|||
this.errors = {}
|
||||
this.parent = options.root ? widgetManager : options.parent
|
||||
this.parentNode = options.parentNode
|
||||
this.hash = options.hash || nanoid('abcdefghijklmnopqrstuvwxyABCDEFGHIJKLMNOPQRSTUVWXYZ', 10)
|
||||
this.hash = options.hash || nanoid('abcdefghijklmnopqrstuvwxyABCDEFGHIJKLMNOPQRSTUVWXYZ', 10)
|
||||
this.children = []
|
||||
this.reCreateOptions = options.reCreateOptions
|
||||
this.removed = false
|
||||
|
|
|
|||
|
|
@ -55,14 +55,14 @@ class Eq extends StaticProperties(Plot, {logScaleX: false, logScaleY:false}) {
|
|||
this.filters = []
|
||||
var filters = this.getProp('filters')
|
||||
for (let i in filters) {
|
||||
try {
|
||||
try {
|
||||
this.filters[i] = new BiquadFilterNode(audioContext, {
|
||||
Q: filters[i].q,
|
||||
type: filters[i].type,
|
||||
frequency: filters[i].freq,
|
||||
gain: filters[i].gain,
|
||||
})
|
||||
} catch(e) {
|
||||
} catch(e) {
|
||||
this.filters[i] = new BiquadFilterNode(audioContext, {
|
||||
Q: 1,
|
||||
type: 'allpass',
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ class Script extends Widget {
|
|||
|
||||
}
|
||||
|
||||
run(context) {
|
||||
run(context) {
|
||||
|
||||
if (this.scriptLock) return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue