diff --git a/README.md b/README.md index 329a8f3..ae8cb27 100644 --- a/README.md +++ b/README.md @@ -152,8 +152,9 @@ import WebComponent from "https://unpkg.com/web-component-base"; class ClickableText extends WebComponent { // gets called when an attribute value changes - onChanges({attr, prev, curr}) { - console.log('>>> something changed', {attr, prev, curr}) + onChanges(changes) { + const {property, previousValue, currentValue} = changes; + console.log('>>> ', {property, previousValue, currentValue}) } get template() {