mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-22 13:48:16 +00:00
chore(copy-paste): use #has util for hasOwnProperty check
This commit is contained in:
parent
6ed51fc036
commit
6035f2ec22
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user