v0.3.0
- Change
data-target
todata-targets
for the@targets
decorator.
This is a breaking change, whereas the old style decorators did the following:
Decorator | Equivalent Native Method | Selector | Returns |
---|---|---|---|
@target | querySelector | data-target="*" | Element |
@targets | querySelectorAll | data-target="*" | Array |
The breaking change is that @target
now selects for data-targets
(with an s) like so:
Decorator | Equivalent Native Method | Selector | Returns |
---|---|---|---|
@target | querySelector | data-target="*" | Element |
@targets | querySelectorAll | data-targets="*" | Array |