Skip to content

Use window.Mzp in Modal and Notification components#488

Closed
liamnewmarch wants to merge 0 commit intomozilla:masterfrom
liamnewmarch:master
Closed

Use window.Mzp in Modal and Notification components#488
liamnewmarch wants to merge 0 commit intomozilla:masterfrom
liamnewmarch:master

Conversation

@liamnewmarch
Copy link
Copy Markdown
Contributor

In github.com/mdn/developer-portal we are using Webpack to include Protocol components in our bundle.

In this setup, each component is wrapped in a function which means we can't rely on the var Mzp check at the top of each file to create an implicit global – in our case the variable that is created is scoped to the module. This doesn’t matter for most components because assign something to window.Mzp, but Modal and Notification Bar use the module-scoped Mzp variable instead.

This PR changes that assignment, so Modal and Notification Bar use window.Mzp, as well as other small changes for consistency with the rest of the components.

@stephaniehobson stephaniehobson added Needs:Review 👋 Ready for Developer Review P2 Second level priority - Should have Review: XS Code review time: 30 mins or less and removed P2 Second level priority - Should have labels Sep 19, 2019
@liamnewmarch
Copy link
Copy Markdown
Contributor Author

Bump!

Is anyone able to review this? If so, it would be helpful in unblocking something we’re working on.

Copy link
Copy Markdown
Contributor

@alexgibson alexgibson left a comment

Choose a reason for hiding this comment

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

Code changes look fine, but please record this in the changelog.

I can help publish a new release on NPM so this can unblock you. Thanks for the PR!

@liamnewmarch
Copy link
Copy Markdown
Contributor Author

Pushing new commits isn’t working here so I’ve opened #496 instead, sorry about that!

@stephaniehobson stephaniehobson removed the Needs:Review 👋 Ready for Developer Review label Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review: XS Code review time: 30 mins or less

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants