js delete observer

Sep 23, 2013 at 11:54am

js delete observer

Hi,

If using the following code to observe a property, is there any way I can delete the clipslots observer object in JS?

autowatch = 1;
outlets = 1;
clipslots = [];

function bang() {
getclips();
}

function getclips() {
clipslots = new LiveAPI(this.patcher, 0, observeclips, "live_set tracks 0 clip_slots 0");
clipslots.property = "has_clip";
}

function observeclips(args) {
post(args);
}

#266044

You must be logged in to reply to this topic.