Skip to content

v4.0.0

Compare
Choose a tag to compare
@wbotelhos wbotelhos released this 01 Oct 23:54
· 24 commits to main since this release

Break Change

  • The jQuery dependency was dropped, so the syntax to start Raty was changed, check the UPGRADE.md;
  • The global configuration $.raty.option = 'value' was removed;
  • The callback click, mouseover, and mouseout now has the this scope being the Raty class instance and the following arguments: score, element, the event;
  • The callback number, readOnly, score, scoreName, target, and path, now has the this scope being the Raty class instance and the single argument: element;
  • The functions now are called from the Raty instance;
  • When click function is called, we don't really have an original event, so instead to receive a fake event new Event('click'), an undefined value is provided.

Update

  • The read-only function now uses pointerEvents over unbind the listeners;