onUnbound
Perform operations when an observable loses all of its event handlers.
.onBound()
This method is not implemented by can-event-queue/value/value
. Instead, the object
should implement it if it wants to perform some actions when it becomes unbound.
var mixinValueBindings = require("can-event-queue/value/value");
var observable = mixinValueBindings({
onUnbound: function(){
console.log("I AM UNBOUND!");
}
});
var handler = function(){}
observable.on(function(){});
observable.off(function(){});
// Logs: "I AM UNBOUND!"