@can.dispatch
Dispatch all event handlers within their appropriate queues.
@can.dispatch(newValue, oldValue)
This is a helper method that will dispatch all handlers within their appropriate can-queues queue.
Furthermore, it will make sure the handlers include useful meta data for debugging.
var observable = mixinValueBindings({});
observable[canSymbol.for("can.dispatch")]( 2, 1 );
Parameters
- newValue
{Any}
:The new value of the observable.
- oldValue
{Any}
:The old value of the observable.