callbackInstanceEvents
Utility function to dispatch events for instance callbacks, e.g. updatedInstance.
connection.callbackInstanceEvents(cbName, instance)
Used to dispatch events as part of instance callbacks implementations. This method could be useful in other
behaviors that implement instance callbacks. E.g. a behavior overriding the
updatedInstance
callback:
connect([canMap, {
updatedInstance: function(instance, props) {
instance = smartMerge(instance, props);
canMapBehavior.callbackInstanceEvents("updated", instance);
}
}], {})