We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bb63049 + 9b6c2e3 commit 87443b6Copy full SHA for 87443b6
1 file changed
src/ember-app.js
@@ -68,21 +68,16 @@ class EmberApp {
68
69
// add any additional user provided variables or override the default globals in the sandbox
70
let globals = {
71
- najax: najax,
+ najax,
72
FastBoot: {
73
require: sandboxRequire,
74
config: appConfig
75
}
76
};
77
- for (let key in sandboxGlobals) {
78
- if (sandboxGlobals.hasOwnProperty(key)) {
79
- globals[key] = sandboxGlobals[key];
80
- }
81
82
83
- return new sandboxClass({
84
- globals: globals
85
- });
+ globals = Object.assign(globals, sandboxGlobals);
+
+ return new sandboxClass({ globals });
86
87
88
/**
0 commit comments