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

retina.js runs automatically despite using import or require #280

Open
fahmilatib opened this issue May 25, 2017 · 2 comments
Open

retina.js runs automatically despite using import or require #280

fahmilatib opened this issue May 25, 2017 · 2 comments
Labels

Comments

@fahmilatib
Copy link

To use retina.js the new-school way, you'll want to require it (or import it if you're using ES6) into your Gulp/Webpack/Grunt/CommonJS/etc application. In this case, the script won't run automatically. Instead, it'll let you determine when you'd like it to run.

When I do import 'retinajs' or require('retinajs') the window.retinajs method runs automatically. Isn't it supposed to only run when I call it manually?

This contradicts what is written in the docs. Am I missing something here guys?

@strues
Copy link
Owner

strues commented Jun 7, 2017

Good catch @fahmilatib. It appears there's a bit of misinformation in the docs. I'll adjust it accordingly alongside an updated release, which should fix the issue.

@strues strues added the bug label Jun 7, 2017
@igolka97
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants