How to unregister a LiveAPI javascript object

Learn about building and using Max for Live devices.
Post Reply
sefable
Posts: 122
Joined: Thu Aug 29, 2019 8:19 pm

How to unregister a LiveAPI javascript object

Post by sefable » Mon Dec 30, 2019 5:22 pm

Hello,
I am
using the LiveAPI javascript object this way :

Code: Select all

api = new LiveAPI([callback], [path] / [id])
When a property changes on that LOM object, the "callback" function is called.

Is there any way to un-register and/or update this callback function without restarting the device?

I have the need to update the callback function without restarting the device.

Simply calling "new LiveAPI(.." again does not work as it keeps the previous registration and I end-up with two active callbacks.

Thanks!

chapelier fou
Posts: 6011
Joined: Mon May 15, 2006 12:15 pm

Re: How to unregister a LiveAPI javascript object

Post by chapelier fou » Mon Dec 30, 2019 6:48 pm

I don’t know JavaScript, but id 0 ?
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

Post Reply