Skip to content

Commit 2410971

Browse files
Update UPGRADE.md
if init() is not called it won't render.
1 parent ab20803 commit 2410971

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)