lint: white spaces & var decl

This commit is contained in:
bordun 2020-03-23 15:43:24 +01:00
parent 8093945a64
commit f8a5eda6aa
6 changed files with 10 additions and 14 deletions

View file

@ -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

View file

@ -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',

View file

@ -104,7 +104,7 @@ class Script extends Widget {
}
run(context) {
run(context) {
if (this.scriptLock) return