Skip to content

Commit b65acc9

Browse files
authored
Merge pull request #253 from markvantilburg/patch-2
Update UPGRADE.md
2 parents 11c70a2 + 2410971 commit b65acc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: UPGRADE.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
$('[data-raty]').raty({ cancel: true });
88

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

1314
2. Replace your global configuration to a local configuration:

0 commit comments

Comments
 (0)