noop: typo

This commit is contained in:
jean-emmanuel 2024-08-09 12:48:34 +02:00
parent 0bc7848b06
commit 8878c9283b
4 changed files with 18 additions and 18 deletions

View file

@ -20,7 +20,7 @@ module.exports = class OscReceiver {
this.parent = parent
this.propNames = [propName]
this.usePreArgs = usePreArgs
this.bindedCallback = this.callback.bind(this)
this.boundCallback = this.callback.bind(this)
this.prefix = ''
this.setAddress(address)
@ -30,7 +30,7 @@ module.exports = class OscReceiver {
if (this.address !== address) {
if (this.address) osc.off(this.prefix + this.address, this.bindedCallback, this.parent)
if (this.address) osc.off(this.prefix + this.address, this.boundCallback, this.parent)
if (address) this.address = address
@ -44,7 +44,7 @@ module.exports = class OscReceiver {
if (this.prefix[this.prefix.length - 1] !== '/') this.prefix += '/'
}
osc.on(this.prefix + this.address, this.bindedCallback, {context: this.parent})
osc.on(this.prefix + this.address, this.boundCallback, {context: this.parent})
}

View file

@ -11,7 +11,7 @@ class CanvasQueue extends EventEmitter{
this.running = false
this.frameLength = 1000 / CANVAS_FRAMERATE
this.lastFrame = 0
this.bindedLoop = this.loop.bind(this)
this.boundLoop = this.loop.bind(this)
}
@ -27,7 +27,7 @@ class CanvasQueue extends EventEmitter{
this.running = true
this.flushed = 0
requestAnimationFrame(this.bindedLoop)
requestAnimationFrame(this.boundLoop)
}
@ -49,7 +49,7 @@ class CanvasQueue extends EventEmitter{
return
}
requestAnimationFrame(this.bindedLoop)
requestAnimationFrame(this.boundLoop)
var delta = timestamp - this.lastFrame

View file

@ -54,7 +54,7 @@ class Visualizer extends StaticProperties(Plot, {rangeX: {min: '', max: ''}, dot
this.watchDuration = 1000 * this.getProp('duration')
this.ticks = 0
this.bindedLoop = this.loop.bind(this)
this.boundLoop = this.loop.bind(this)
}
@ -63,7 +63,7 @@ class Visualizer extends StaticProperties(Plot, {rangeX: {min: '', max: ''}, dot
this.clock = Date.now()
if (!this.looping && !this.getProp('freeze')) {
this.lastUpdate = Date.now()
canvasQueue.on('frame', this.bindedLoop)
canvasQueue.on('frame', this.boundLoop)
if (!canvasQueue.running) canvasQueue.startLoop()
this.looping = true
this.ticks = 0
@ -74,7 +74,7 @@ class Visualizer extends StaticProperties(Plot, {rangeX: {min: '', max: ''}, dot
if (this.looping) {
canvasQueue.off('frame', this.bindedLoop)
canvasQueue.off('frame', this.boundLoop)
this.looping = false
}