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

remove direct use of HTMLCanvasElement #988

Merged
merged 1 commit into from
Nov 27, 2018
Merged

remove direct use of HTMLCanvasElement #988

merged 1 commit into from
Nov 27, 2018

Conversation

MarvinWilliam
Copy link

HTMLCanvasElement is interface of canvas element, it should not be used to create element.

@lannymcnie
Copy link
Member

lannymcnie commented Oct 1, 2018

Can you re-submit without the new minified builds? Happy to merge once that's complete.

@MarvinWilliam
Copy link
Author

Can you re-submit without the new minified builds? Happy to merge once that's complete.

Ok, I have re-push change.

@Abrahamic-God
Copy link

Would love to see this merged and have a new release published to npm! This is currently a blocking issue for me.

@lannymcnie
Copy link
Member

Thanks, I can merge this shortly.

@lannymcnie
Copy link
Member

Reviewing this: It does change the behaviour.

In the current version, the HTML canvas always overrides the one created using createCanvas(). Basically it creates it if it can (ie, if HTMLCanvasElement exists).

In the PR, it will only do it if the createCanvas returns null.

Not saying its a bad implementation, but its different, so I am just following up with the author on intent.

@gskinner gskinner merged commit 07690a4 into CreateJS:2.0 Nov 27, 2018
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.

None yet

4 participants