Skip to content

Fix a queued teardown crash with viewModel listeners

Latest
Compare
Choose a tag to compare
@bmomberger-bitovi bmomberger-bitovi released this 22 Jan 21:24

Running can-control teardowns from the dom queue (as can-view-live now does) causes control teardown and rebinding of action listeners to run out of order, which throws an error. This release prevents the error, and also delays teardown to the mutate queue if triggered from the dom queue.

See #143 for more