Commit e4eee2c
committed
fix(perf): use
This is about 10% faster in Chrome, likely due to JITs being able to do a better thing
Closes sveltejs#8629 (is a rework of)if in toggle_class instead of dynamic property access shenanigans1 parent 3bc791b commit e4eee2c
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
757 | 761 | | |
758 | 762 | | |
759 | 763 | | |
| |||
0 commit comments