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

Importing Legra in script tag requires to use lowercase constructor #5

Open
r34117y opened this issue Nov 27, 2019 · 1 comment
Open

Comments

@r34117y
Copy link

r34117y commented Nov 27, 2019

const legra = new Legra(ctxFace, 20);
Uncaught ReferenceError: Legra is not defined

const legra = new legra(ctxFace, 20);
Uncaught ReferenceError: Cannot access 'legra' before initialization

const l = new legra(ctxFace, 20);
Above works ok

It is not mentioned in docs :)

@pshihn
Copy link
Owner

pshihn commented Nov 27, 2019

Yep it should be Capitalized in this case, because it's a class name.
Thanks for reporting

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

No branches or pull requests

2 participants