Skip to content

Commit

Permalink
Merge pull request #253 from markvantilburg/patch-2
Browse files Browse the repository at this point in the history
Update UPGRADE.md
  • Loading branch information
wbotelhos authored Apr 27, 2024
2 parents 11c70a2 + 2410971 commit b65acc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
$('[data-raty]').raty({ cancel: true });

// To
new Raty(document.querySelector('[data-raty]'), { cancel: true });
const raty = new Raty(document.querySelector('[data-raty]'), { cancel: true });
raty.init();
```

2. Replace your global configuration to a local configuration:
Expand Down

0 comments on commit b65acc9

Please sign in to comment.