can-symbol
Version:
Well known symbols used to detail how to operate on different objects
15 lines (11 loc) • 689 B
Markdown
function(Array<can-symbol/types/Patch>)} can-symbol/symbols/offPatches can.offPatches
can-symbol/symbols/observe
Defines how to stop listening to patch changes on an object.
`@can.offPatches( handler, queueName )`
The `@@can.offPatches` symbol points to a function that unregisters a
`handler` bound with [can-symbol/symbols/onPatches].
{Object} Any Map-like object with named properties.
{function(Array<can-symbol/types/Patch>)} handler(patches) The same handler
function passed to [can-symbol/symbols/onPatches].
{String} queueName The [can-queues] queue the `handler`
should be enqueued within. Defaults to `"mutate"`.
{