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

@ -18,9 +18,9 @@ class UiSelectArea {
this.selector = selector
this.callback = callback
this.bindedMousedown = this.mousedown.bind(this)
this.bindedMousemove = this.mousemove.bind(this)
this.bindedMouseup = this.mouseup.bind(this)
this.boundMousedown = this.mousedown.bind(this)
this.boundMousemove = this.mousemove.bind(this)
this.boundMouseup = this.mouseup.bind(this)
}
@ -109,17 +109,17 @@ class UiSelectArea {
enable() {
document.addEventListener('pointerdown', this.bindedMousedown)
document.addEventListener('pointermove', this.bindedMousemove, true)
document.addEventListener('pointerup', this.bindedMouseup)
document.addEventListener('pointerdown', this.boundMousedown)
document.addEventListener('pointermove', this.boundMousemove, true)
document.addEventListener('pointerup', this.boundMouseup)
}
disable() {
document.removeEventListener('pointerdown', this.bindedMousedown)
document.removeEventListener('pointermove', this.bindedMousemove, true)
document.removeEventListener('pointerup', this.bindedMouseup)
document.removeEventListener('pointerdown', this.boundMousedown)
document.removeEventListener('pointermove', this.boundMousemove, true)
document.removeEventListener('pointerup', this.boundMouseup)
}

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
}