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

Use IIFE #23

Closed
felquis opened this issue Jun 24, 2015 · 1 comment
Closed

Use IIFE #23

felquis opened this issue Jun 24, 2015 · 1 comment

Comments

@felquis
Copy link
Member

felquis commented Jun 24, 2015

We follow this style guide https://github.com/johnpapa/angular-styleguide#javascript-closures

But our code doesn't use IIFEs yet

@felquis
Copy link
Member Author

felquis commented Jun 28, 2015

There's a problem with JSCS(I hope it's with me), if we use disallowAnonymousFunctions we also can't use anonymous functions in IIFE

Does anyway know how could we check if the files use IIFEs and also avoid Anonymous Functions inside IIFEs?

felquis added a commit that referenced this issue Jul 4, 2015
In this way, we could ensure named functions and ensure every file has
their own scope.

related to #23 closes #24
felquis added a commit that referenced this issue Jul 4, 2015
@felquis felquis closed this as completed in 2dda1f7 Jul 4, 2015
felquis added a commit that referenced this issue Jul 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants