Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Simplify tab(-controller) creation #317

Open
JonasWanke opened this issue Jun 26, 2020 · 0 comments
Open

Simplify tab(-controller) creation #317

JonasWanke opened this issue Jun 26, 2020 · 0 comments

Comments

@JonasWanke
Copy link
Contributor

A few lines above we check if initialTabIndex < 0. Can't we directly after we do the indexOf just clamp it? Like initialTabIndex = initialTabIndex.clamp(0, tabs.length - 1)

Originally posted by @MarcelGarus in #301

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant