canjs / can-23

A CanJS 2.3 stache built from mostly CanJS 6 parts.
0 stars 1 forks source link

Unsupported Features #1

Open justinbmeyer opened 3 years ago

justinbmeyer commented 3 years ago

Stache

Utils

Component

justinbmeyer commented 3 years ago

Control

If a can-23 control wants to opt into using the CanJS 6 removed event, you need to add:

Control.extend({
  " removed": function(){ ... }
  $useAsyncRemoved: true
})

This can be set globally like:

Control.$useAsyncRemoved = true

You need to import util/before-remove to get the beforeRemove event and control to make removed use beforeRemoved by default.