Skip to content

Commit 6c34c9d

Browse files
committed
Update underscore
1 parent adfbc93 commit 6c34c9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/web/mage/utils/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ define(function (require) {
77

88
var utils = {},
99
_ = require('underscore'),
10-
root = this || (0, eval)('this');
10+
root = typeof self == 'object' && self.self === self && self
11+
|| typeof global == 'object' && global.global === global && global
12+
|| Function('return this')() || {};
1113

1214
root._ = _;
1315

0 commit comments

Comments
 (0)