chore(copy-paste): use #has util for hasOwnProperty check

This commit is contained in:
Nico Rehwaldt 2019-08-13 13:37:01 +02:00
parent 6ed51fc036
commit 6035f2ec22
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}