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

fix(vue-app): var names shadowing in chrome debugger #7939

Merged
merged 2 commits into from Aug 25, 2020
Merged

fix(vue-app): var names shadowing in chrome debugger #7939

merged 2 commits into from Aug 25, 2020

Conversation

Kapcash
Copy link
Contributor

@Kapcash Kapcash commented Aug 17, 2020

Fixes #7731 :)
Just renamed a variable in a small block so that another variable in the parent block don't shadow eachother in the Chrome debugger.

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (PR: #)
  • I have added tests to cover my changes (if not applicable, please state why)
  • All new and existing tests are passing.

@Kapcash Kapcash changed the title fix: var names shadowing in debug Var names shadowing in Chrome debugger Aug 17, 2020
@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2020

Codecov Report

Merging #7939 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #7939   +/-   ##
=======================================
  Coverage   68.92%   68.92%           
=======================================
  Files          91       91           
  Lines        3846     3846           
  Branches     1041     1041           
=======================================
  Hits         2651     2651           
  Misses        971      971           
  Partials      224      224           
Flag Coverage Δ
#unittests 68.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e9d759...83b77ab. Read the comment docs.

@Kapcash Kapcash changed the title Var names shadowing in Chrome debugger fix: var names shadowing in Chrome debugger Aug 23, 2020
@@ -94,10 +94,10 @@ function resolveStoreModules (moduleData, filename) {
// If src is a known Vuex property
if (VUEX_PROPERTIES.includes(moduleName)) {
const property = moduleName
const storeModule = getStoreModule(store, namespaces, { isProperty: true })
const moduleStore = getStoreModule(store, namespaces, { isProperty: true })
Copy link
Member

Choose a reason for hiding this comment

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

What about propertyStoreModule ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why not! It's better actually haha
Gonna change that soon

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrected :)

@clarkdo clarkdo requested a review from pi0 August 25, 2020 14:18
@pi0 pi0 changed the title fix: var names shadowing in Chrome debugger fix(vue-app): var names shadowing in chrome debugger Aug 25, 2020
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @Kapcash 👍

@pi0 pi0 merged commit 51b037f into nuxt:dev Aug 25, 2020
@pi0 pi0 mentioned this pull request Aug 26, 2020
@danielroe danielroe added the 2.x label Jan 18, 2023
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.

Shadowing name variables in store.js
5 participants