Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addon/mixins/copyable.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const {
guidFor,
isEmpty,
runInDebug,
canInvoke
Copyable
} = Ember;

const {
Expand Down Expand Up @@ -139,7 +139,7 @@ export default Ember.Mixin.create({
) {
let value = this.get(name);

if (canInvoke(value, 'copy')) {
if (Copyable && Copyable.detect(value)) {
// "value" is an Ember.Object using the Ember.Copyable API (if you use
// the "Ember Data Model Fragments" addon and "value" is a fragment or
// if use your own serializer where you deserialize a value to an
Expand Down