@can.offKeyValue
Unregister an event handler to be called when an event is dispatched.
canReflect.offKeyValue( obj, key, handler, queueName )
Removes a handlers from being called when key
changes are
dispatched.
// Removes `handler` if it is in the notify queue.
canReflect.offKeyValue( obj, "prop", handler, "notify" )
Parameters
- eventName
{String}
:The name of the event to remove. If not specified, all events are removed.
- handler
{function}
:The handler that will be removed from the event. If not specified, all handlers for the event are removed.
- queueName
{String}
:The name of the can-queues queue the handler was registered on. Defaults to
"mutate"
.