chore(copy-paste): use #has util for hasOwnProperty check
This commit is contained in:
parent
6ed51fc036
commit
6035f2ec22
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue