Skip to content

Commit

Permalink
[BUGFIX beta] Replace Object.assign with Ember polyfill assign (ember…
Browse files Browse the repository at this point in the history
  • Loading branch information
nlfurniss authored and NullVoxPopuli committed Sep 8, 2018
1 parent 65841df commit ca22d4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/-record-data-private/system/model/internal-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import EmberError from '@ember/error';
import { A } from '@ember/array';
import { setOwner } from '@ember/application';
import { run } from '@ember/runloop';
import { assign } from '@ember/polyfills';
import RSVP, { Promise } from 'rsvp';
import Ember from 'ember';
import { DEBUG } from '@glimmer/env';
Expand Down Expand Up @@ -285,7 +286,7 @@ export default class InternalModel {
}

let additionalCreateOptions = this._modelData._initRecordCreateOptions(properties);
Object.assign(createOptions, additionalCreateOptions);
assign(createOptions, additionalCreateOptions);

if (setOwner) {
// ensure that `getOwner(this)` works inside a model instance
Expand Down

0 comments on commit ca22d4f

Please sign in to comment.