Releases: canjs/can-control
Releases · canjs/can-control
Fix a queued teardown crash with viewModel listeners
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
Move can-control to legacy
- can-control is fully up-to-date with CanJS 6 but is now considered legacy code. There are no planned feature enhancements, and new development with CanJS should use stache bindings to bind DOM events
https://canjs.com/doc/can-stache-bindings.event.html
- A can-control-backed element's events are now torn down on the
nodeDisconnected
mutation event, rather than onnodeRemoval
.
Remove can-util
This removes can-util from tests.
QUNIT2 upgrade
This updates the tests to use QUnit@2.x.x.
Fix failure in environments with no documentElement
adds controls to `can.controls` symbol on element
import canSymbol from "can-symbol";
element[canSymbol.for("can.controls")] //-> controls
v4.2.0
Added can-log depenency
Removing use of can-util/dom
In order to be compatible with canjs 4.0, this removes use of can-util/dom methods that use an older version of can-dom-data-state and cause dependency conflicts.