Skip to content

Add support for value and oldValue in events

Latest
Compare
Choose a tag to compare
@matthewp matthewp released this 08 Aug 18:50
· 4 commits to master since this release

Dispatched events now have a value that represents the new value, and an oldValue for the old value.

defineMap.listenTo("prop", (ev) => {
  console.log("New value", ev.value, "Old value", ev.oldValue);
});