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

True Global #85

Closed
blond opened this issue Mar 26, 2016 · 0 comments
Closed

True Global #85

blond opened this issue Mar 26, 2016 · 0 comments
Assignees
Milestone

Comments

@blond
Copy link
Member

blond commented Mar 26, 2016

Now to provide bemNaming to global scope using this:

(function (global) {

})(this);

In NodeJS this link to module.exports, but not in global variables.

For browsers need use window variable.

(function (global) {

})(typeof window !== "undefined" ? window : global);
@blond blond added this to the 1.0 milestone Mar 26, 2016
@blond blond mentioned this issue Mar 27, 2016
@blond blond self-assigned this Mar 27, 2016
@blond blond closed this as completed in #86 Mar 27, 2016
@qfox qfox added the pkg:naming label Jul 2, 2017
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