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

Add named functions to context, pass by parameter. #24

Closed
bigeasy opened this issue Jul 5, 2012 · 1 comment
Closed

Add named functions to context, pass by parameter. #24

bigeasy opened this issue Jul 5, 2012 · 1 comment
Assignees

Comments

@bigeasy
Copy link
Owner

bigeasy commented Jul 5, 2012

Instead of assigning a function to a variable in scope, the function is added by its name to the context. Added benefit of not adding the function to the global scope. Need to test this on Internet Explorer.

@ghost ghost assigned bigeasy Jul 5, 2012
@bigeasy
Copy link
Owner Author

bigeasy commented Jul 5, 2012

No need to test this. Instead read the excellent article by Juriy "kangax" Zaytsev; Named function expressions demystified.

@bigeasy bigeasy closed this as completed in a219b06 Jul 6, 2012
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

1 participant