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

Add alert, confirm, and prompt to globals #2649

Merged
merged 1 commit into from
May 4, 2019
Merged

Add alert, confirm, and prompt to globals #2649

merged 1 commit into from
May 4, 2019

Conversation

EmilTholin
Copy link
Member

@EmilTholin EmilTholin commented May 2, 2019

Adding alert, confirm, and prompt to globals makes is so Svelte doesn't warn when using it in an inlined event handler.

Closes #2648

@creaven
Copy link

creaven commented May 2, 2019

what about prompt and confirm?

@EmilTholin
Copy link
Member Author

You're right, those should most likely be added as well. Do you mind if I extend the issue and this PR to include those?

@creaven
Copy link

creaven commented May 2, 2019

I think make sense to add it in one PR

@EmilTholin EmilTholin changed the title Add alert to globals Add alert, confirm, and prompt to globals May 2, 2019
@Rich-Harris Rich-Harris merged commit 7b99299 into sveltejs:master May 4, 2019
@Rich-Harris
Copy link
Member

much better, thanks

@EmilTholin EmilTholin deleted the alert-global branch May 4, 2019 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using alert, prompt or confirm in an inlined event handler gives warning
3 participants