canjs / can-define

Observable properties
https://canjs.com/doc/can-define.html
MIT License
15 stars 7 forks source link

adds newValue and oldValue on event objects #434

Closed justinbmeyer closed 5 years ago

justinbmeyer commented 5 years ago

For https://github.com/canjs/canjs/issues/4656

Dispatches events with:

action: "set",
key: prop,
target: map,
newValue: newVal,
oldValue: oldValue,

This enables:

map.on("key", ({newValue}) => {})

type functions.