29.10.2021, 10:19
Try this:
Code:
localbus.unlistenobject = function(addr, callback) {
var id = localbus.encodega(addr);
if (id) {
var callbacks = localbus.listeners.object[ id ];
if (callbacks) {
var index = callbacks.indexOf(callback);
if (index >= 0) {
callbacks.splice(index, 1);
}
}
}
};