onBound
Perform operations when an observable is gains its first event handler.
.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 bound.
var mixinValueBindings = require("can-event-queue/value/value");
var observable = mixinValueBindings({
onBound: function(){
console.log("I AM BOUND!");
}
});
observable.on(function(){});
// Logs: "I AM BOUND!"