Skip to content

v0.3.0

Compare
Choose a tag to compare
@keithamus keithamus released this 25 Jun 13:27
  • Change data-target to data-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