Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract focus initialization logic to initFocus() #1682

Merged
merged 1 commit into from
Jul 20, 2019

Conversation

limonte
Copy link
Member

@limonte limonte commented Jul 20, 2019

Towards #1678

@@ -132,3 +110,19 @@ const populateDomCache = (instance) => {

return domCache
}

const initFocus = (domCache, innerParams) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function initFocus has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.

@coveralls
Copy link

coveralls commented Jul 20, 2019

Pull Request Test Coverage Report for Build 5206

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 91.016%

Files with Coverage Reduction New Missed Lines %
dist/sweetalert2.js 3 91.02%
Totals Coverage Status
Change from base Build 5204: 0.02%
Covered Lines: 1305
Relevant Lines: 1378

💛 - Coveralls

@limonte limonte merged commit 3af3dc8 into master Jul 20, 2019
@limonte limonte deleted the chore/extract-initFocus branch July 20, 2019 21:19
@limonte
Copy link
Member Author

limonte commented Aug 2, 2019

🎉 This PR is included in version 8.14.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants