Commit 9ee82b8
authored
Switch hasattr with our version check (#1152)
If you mix hasattr with version checks you get the wrong behavior on
old dev builds, because in the case of fragments when it was supported
`ctx.fragments.swift` always existed, you just couldn't access it
without declaring the dependency, so on old commit releases they are
treated as not having this feature, even when the fragment API is still
there.1 parent 313ab73 commit 9ee82b8
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
0 commit comments