Skip to content

Commit 62b3699

Browse files
committed
Conditional use of Ember.assign to support 2.4
1 parent d9333cc commit 62b3699

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/helpers/start-app.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ import Application from '../../app';
33
import config from '../../config/environment';
44

55
export default function startApp(attrs) {
6-
let application;
6+
let application, attributes;
77

88
// use defaults, but you can override
9-
let attributes = Ember.assign({}, config.APP, attrs);
9+
if (Ember.assign) {
10+
attributes = Ember.assign({}, config.APP, attrs);
11+
} else {
12+
attributes = Ember.merge({}, config.APP);
13+
attributes = Ember.merge(attributes, attrs);
14+
}
1015

1116
Ember.run(() => {
1217
application = Application.create(attributes);

0 commit comments

Comments
 (0)