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

ES6 : Support syntax canvas.getContext2d in module "hash context" #63

Closed
Siorki opened this issue Jan 29, 2017 · 0 comments
Closed

ES6 : Support syntax canvas.getContext2d in module "hash context" #63

Siorki opened this issue Jan 29, 2017 · 0 comments
Assignees
Milestone

Comments

@Siorki
Copy link
Owner

Siorki commented Jan 29, 2017

getContext`2d` is equivalent to getContext("2d") and costs 2 bytes less.
Also works with webgl of course. The syntax should be supported when detecting context creation.

Example of use : JS2017 intro

@Siorki Siorki added this to the 5.0 milestone Jan 29, 2017
@Siorki Siorki self-assigned this Jan 29, 2017
@Siorki Siorki closed this as completed Jan 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant