Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

gopsmith
Copy link

@gopsmith gopsmith commented Feb 7, 2017

This change corrects the 'iife' snippet body. The final parenthesis was in the wrong place: instead of closing the entire expression in the body, it should have been placed before the () function invocation so that the anonymous function gets invoked properly.

@winstliu
Copy link
Contributor

winstliu commented Feb 8, 2017

Both the existing snippet and the proposed snippet do the same thing. See http://benalman.com/news/2010/11/immediately-invoked-function-expression/.

@winstliu winstliu closed this Feb 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants