Skip to content

Commit 21ead41

Browse files
committed
Merge pull request #86 from bem/issue-85
True Global
2 parents 27737a7 + 4c26980 commit 21ead41

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
env:
22
es6: true
3+
browser: true
34
commonjs: true
45
amd: true
56
mocha: true

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,4 @@ if (typeof define === 'function') {
335335

336336
/* istanbul ignore next */
337337
defineAsGlobal && (global.bemNaming = createNaming);
338-
})(this);
338+
})(typeof window !== 'undefined' ? window : global);

0 commit comments

Comments
 (0)