diff --git a/lib/features/copy-paste/ModdleCopy.js b/lib/features/copy-paste/ModdleCopy.js index 35907c6a..748e4585 100644 --- a/lib/features/copy-paste/ModdleCopy.js +++ b/lib/features/copy-paste/ModdleCopy.js @@ -6,6 +6,7 @@ import { isObject, matchPattern, reduce, + has, sortBy } from 'min-dash'; @@ -156,7 +157,7 @@ ModdleCopy.prototype.copyElement = function(sourceElement, targetElement, proper forEach(propertyNames, function(propertyName) { var sourceProperty; - if (sourceElement.hasOwnProperty(propertyName)) { + if (has(sourceElement, propertyName)) { sourceProperty = sourceElement.get(propertyName); }