A function that retrieves and returns the current value of the compute.
A function that is used when setting a new value of the compute.
A function that is called when a compute is called with an argument. The function is passed the first argumented passed to [can-computed] and the current value. If
setreturns a value, it is used to compare to the current value of the compute. Otherwise,
getis called to get the current value of the compute and that value is used to determine if the compute has changed values.
newValis the value being set, while
oldValis the previous value in the compute.
Called to setup binding to dependency events. Call
updatedwhen the compute's value needs to be updated.
Called to teardown binding.