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, isObject,
matchPattern, matchPattern,
reduce, reduce,
has,
sortBy sortBy
} from 'min-dash'; } from 'min-dash';
@ -156,7 +157,7 @@ ModdleCopy.prototype.copyElement = function(sourceElement, targetElement, proper
forEach(propertyNames, function(propertyName) { forEach(propertyNames, function(propertyName) {
var sourceProperty; var sourceProperty;
if (sourceElement.hasOwnProperty(propertyName)) { if (has(sourceElement, propertyName)) {
sourceProperty = sourceElement.get(propertyName); sourceProperty = sourceElement.get(propertyName);
} }