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

"ReferenceError: obj is not defined" when using async.each #864

Closed
fhchl opened this issue Jul 28, 2015 · 1 comment
Closed

"ReferenceError: obj is not defined" when using async.each #864

fhchl opened this issue Jul 28, 2015 · 1 comment
Labels

Comments

@fhchl
Copy link

fhchl commented Jul 28, 2015

I guess this is just a small typo, but happens to me, when I use the current async.js file. Minimal working example:

<!DOCTYPE html>
<html>
    <script src="async.js"></script>
    <script type="text/javascript">
        async.each([1,2,3,4] , function iterator(item, callback){
              callback();
        }, function (err) {
              if (err) {console.log(err);}
        });
    </script>
</html>
@aearly
Copy link
Collaborator

aearly commented Jul 28, 2015

Seems to work for me: https://codepen.io/anon/pen/MwzpeY

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

2 participants