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

Init callback not called #8

Closed
conradz opened this issue Dec 15, 2014 · 3 comments
Closed

Init callback not called #8

conradz opened this issue Dec 15, 2014 · 3 comments

Comments

@conradz
Copy link

conradz commented Dec 15, 2014

I couldn't get the callback to init to be called. It appears that the callback value is getting dropped in the initialize function, which only declares one argument but is called with two in Quagga.init.

@serratus
Copy link
Owner

Thanks for pointing out this unused parameter. Please provide a callback to the Quagga.init() like:

Quagga.init({
    //... other properties
    readyFunc: function() {
        console.log("Called when ready");
    }
});

@conradz
Copy link
Author

conradz commented Dec 17, 2014

It is also on the readme.

@serratus
Copy link
Owner

Thanks again for pointing that out. I updated the readme accordingly and added an example showing how to use it.

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