diff --git a/src/client/ui/ui-selectarea.js b/src/client/ui/ui-selectarea.js index 0fe9eb80..89b2a83f 100644 --- a/src/client/ui/ui-selectarea.js +++ b/src/client/ui/ui-selectarea.js @@ -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) } diff --git a/src/client/widgets/common/osc-receiver.js b/src/client/widgets/common/osc-receiver.js index 09121fbf..868b0f9e 100644 --- a/src/client/widgets/common/osc-receiver.js +++ b/src/client/widgets/common/osc-receiver.js @@ -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}) } diff --git a/src/client/widgets/common/queue.js b/src/client/widgets/common/queue.js index 9b0ba092..d6245bc9 100644 --- a/src/client/widgets/common/queue.js +++ b/src/client/widgets/common/queue.js @@ -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 diff --git a/src/client/widgets/graphs/visualizer.js b/src/client/widgets/graphs/visualizer.js index 8f30ea8a..8cb2eece 100644 --- a/src/client/widgets/graphs/visualizer.js +++ b/src/client/widgets/graphs/visualizer.js @@ -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 }